summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@chef.io>2019-11-21 12:21:49 -0800
committerGitHub <noreply@github.com>2019-11-21 12:21:49 -0800
commit8402c027e151a668510a018b5748d5741a75f4b2 (patch)
treea0d839f120e9a38537b807934dfeadfb964eded1
parent243a7a05a0119f1986532298820186e916889223 (diff)
parentb69756529164ba72a682e9da3d0f602adf2b51a4 (diff)
downloadchef-8402c027e151a668510a018b5748d5741a75f4b2.tar.gz
fix selinux specs for workstation (#9121)
fix selinux specs for workstation
-rw-r--r--spec/unit/util/selinux_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/util/selinux_spec.rb b/spec/unit/util/selinux_spec.rb
index 18774aee2c..55d909dae4 100644
--- a/spec/unit/util/selinux_spec.rb
+++ b/spec/unit/util/selinux_spec.rb
@@ -39,7 +39,7 @@ describe Chef::Util::Selinux do
end
it "each part of ENV['PATH'] should be checked" do
- expected_paths = ENV["PATH"].split(File::PATH_SEPARATOR) + [ "/bin", "/usr/bin", "/sbin", "/usr/sbin" ]
+ expected_paths = ENV["PATH"].split(File::PATH_SEPARATOR) + %w{/usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin}
expected_paths.uniq.each do |bin_path|
selinux_path = File.join(bin_path, "selinuxenabled")