2
0
Fork 0
mirror of https://github.com/inspec/inspec synced 2025-03-07 08:47:29 +00:00

Skip functional cookstyle tests on windows

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
Clinton Wolfe 2021-11-15 23:53:18 -05:00
parent 6ecbc67642
commit 48976409ea

View file

@ -120,12 +120,14 @@ describe "inspec check" do
describe "inspec check also check for cookstyle offenses" do
it "finds no offenses in a complete profile" do
skip if windows? # see #5723
out = inspec("check #{profile_path}/complete-profile")
_(out.stdout).must_match(/No errors, warnings, or offenses/)
assert_exit_code 0, out
end
it "fails and returns offenses in a profile" do
skip if windows? # see #5723
out = inspec("check #{profile_path}/inputs/metadata-basic")
_(out.stdout).must_match(/1 offenses/)
assert_exit_code 1, out