diff options
author | Tim Smith <tsmith84@gmail.com> | 2021-03-25 18:57:50 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-03-25 18:57:50 -0700 |
commit | b7d108d8e6b0d10d60d178adea44f546e7a92aca (patch) | |
tree | 2e58b77ea0324eb7f1255d752e023d9533c85f70 | |
parent | b83b8b8b9f30b0ad2ed3818141b32209d0a84f59 (diff) | |
download | chef-fixes.tar.gz |
Skip selinux tests on windowsfixes
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | spec/unit/util/selinux_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/unit/util/selinux_spec.rb b/spec/unit/util/selinux_spec.rb index a14c682996..66e71b289e 100644 --- a/spec/unit/util/selinux_spec.rb +++ b/spec/unit/util/selinux_spec.rb @@ -30,6 +30,9 @@ describe Chef::Util::Selinux do end before do + allow(ChefUtils).to receive(:windows?).and_return(false) + allow(ENV).to receive(:[]).with("PATHEXT").and_return(nil) + allow(ENV).to receive(:[]).with("PATH").and_call_original TestClass.reset_state @test_instance = TestClass.new end |