Go back to cmd from powershell.

Apparently it is too much of a shift and I tested too small of a
sample.

Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
Ryan Davis 2019-06-03 23:07:30 -07:00
parent 702533f351
commit 5573957c52

View file

@ -127,7 +127,7 @@ module FunctionalHelper
def inspec(commandline, prefix = nil) def inspec(commandline, prefix = nil)
if is_windows? if is_windows?
invocation = "powershell -NonInteractive -Command \"#{prefix} bundle exec #{exec_inspec} #{commandline}\"" invocation = "cmd /C \"#{prefix} #{exec_inspec} #{commandline}\""
result = CMD.run_command(invocation) result = CMD.run_command(invocation)
result.stdout.encode!(universal_newline: true) result.stdout.encode!(universal_newline: true)
result.stderr.encode!(universal_newline: true) result.stderr.encode!(universal_newline: true)