lib/kitchen/verifier/shell.rb in kitchen-verifier-shell-0.1.0 vs lib/kitchen/verifier/shell.rb in kitchen-verifier-shell-0.1.1
- old
+ new
@@ -70,9 +70,12 @@
end
end
def merge_state_to_env(state)
env_state = { :environment => {} }
+ env_state[:environment]["KITCHEN_INSTANCE"] = instance.name
+ env_state[:environment]["KITCHEN_PLATFORM"] = instance.platform.name
+ env_state[:environment]["KITCHEN_SUITE"] = instance.suite.name
state.each_pair do |key, value|
env_state[:environment]["KITCHEN_" + key.to_s.upcase] = value
end
config[:shellout_opts].merge!(env_state)
end