summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-11-21 11:48:57 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2019-11-21 11:48:57 -0800
commitb69756529164ba72a682e9da3d0f602adf2b51a4 (patch)
treea0d839f120e9a38537b807934dfeadfb964eded1
parent243a7a05a0119f1986532298820186e916889223 (diff)
downloadchef-b69756529164ba72a682e9da3d0f602adf2b51a4.tar.gz
fix selinux specs for workstation
i can only assume this was missed because /usr/local/[s]bin was already in the PATH everywhere else this has passed tests locally and on buildkite. dunno why workstation's testers are different, but this is an overlooked fix. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-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")