mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
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:
parent
fcfcc354fe
commit
a2b6517f9a
1 changed files with 3 additions and 1 deletions
|
@ -132,7 +132,9 @@ describe "Inspec::Resources::JSON" do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "empty stdout, message in stderr" do
|
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:"
|
assert_resource_failed resource, "No JSON output, STDERR:"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue