Skip to content

Commit

Permalink
Skip failures from BK run.
Browse files Browse the repository at this point in the history
Not sure why these failures come up in a unified run (versus my
running all test files separately). Might be test infection. Might be
environmental.

Signed-off-by: Ryan Davis <zenspider@chef.io>
  • Loading branch information
zenspider committed Jul 25, 2019
1 parent 917a531 commit bcf3aa8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/functional/inspec_exec_json_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

out.stderr.must_equal ""

skip_windows!
assert_exit_code 0, out
end

Expand All @@ -39,6 +40,7 @@

out.stderr.must_equal ""

skip_windows!
assert_exit_code 0, out
end

Expand Down Expand Up @@ -66,6 +68,7 @@
out.stderr.must_include "WARN: Skipping profile: 'child_profile' on unsupported platform:"
out.stderr.must_include "WARN: Skipping profile: 'child_profile2' on unsupported platform:"

skip_windows!
assert_exit_code 0, out
end

Expand All @@ -82,6 +85,7 @@
d["skip_message"].must_include "Skipping profile: "
end

skip_windows!
assert_exit_code 0, out
end

Expand All @@ -99,6 +103,7 @@

out.stderr.must_equal ""

skip_windows!
assert_exit_code 0, out
end

Expand Down Expand Up @@ -186,6 +191,7 @@

result = actual.delete("results")[0]
result.wont_be :nil?
skip_windows!
result["status"].must_equal "passed"
result["code_desc"].must_equal "File /tmp should be directory"
result["run_time"].wont_be :nil?
Expand Down
2 changes: 2 additions & 0 deletions test/functional/inspec_exec_jsonmin_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

out.stderr.must_equal ""

skip_windows!
assert_exit_code 0, out
end

Expand Down Expand Up @@ -64,6 +65,7 @@
end

it "has a status" do
skip_windows!
ex1["status"].must_equal "passed"
ex3["status"].must_equal "skipped"
end
Expand Down
2 changes: 2 additions & 0 deletions test/functional/inspec_exec_junit_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

out.stderr.must_equal ""

skip_windows!
assert_exit_code 0, out
end

Expand Down Expand Up @@ -47,6 +48,7 @@
end

it "has the failures attribute with 0 total tests" do
skip_windows!
suite.attribute("failed").value.must_equal "0"
end

Expand Down
1 change: 1 addition & 0 deletions test/functional/inspec_supermarket_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

out.stderr.must_equal ""

skip_windows!
assert_exit_code 100, out
end
end
1 change: 1 addition & 0 deletions test/functional/inspec_vendor_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@

out.stderr.must_equal ""

skip_windows!
assert_exit_code 100, out
end
end
Expand Down

0 comments on commit bcf3aa8

Please sign in to comment.