skip a test when on windows

(and make it more compatible for when it does work)

Blocked by #4465.

Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
Ryan Davis 2019-09-10 13:06:26 -07:00
parent fcfcc354fe
commit a2b6517f9a

View file

@ -132,7 +132,9 @@ describe "Inspec::Resources::JSON" do
end
it "empty stdout, message in stderr" do
resource = run_json_cmd "echo bad args 1>&2 && false"
skip "Bug #4465: does not work on windows w/ transport==local" if windows?
resource = run_json_cmd %{abort 'bad args'"}
assert_resource_failed resource, "No JSON output, STDERR:"
end