Fixed env vars on functional plugin tests for windows.

Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
Ryan Davis 2019-08-14 15:46:53 -07:00
parent ead386df14
commit a27eef1d0b

View file

@ -60,7 +60,7 @@ module CorePluginFunctionalHelper
if opts.key?(:prefix)
prefix = opts[:prefix]
elsif opts.key?(:env)
prefix = opts[:env].to_a.map { |assignment| "#{assignment[0]}=#{assignment[1]}" }.join(" ")
prefix = assemble_env_prefix opts[:env]
end
TRAIN_CONNECTION.run_command("#{prefix} #{exec_inspec} #{command_line}")