summaryrefslogtreecommitdiff
path: root/test/TEST-13-NSPAWN-SMOKE
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2022-09-02 19:39:30 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2022-09-02 22:09:29 +0200
commit729292d9ddc2ac390749af5deb232c5e749aef6f (patch)
tree27496cc8eb9473447e7a34f00a696858f00034b1 /test/TEST-13-NSPAWN-SMOKE
parentd1f6c3857ef4ade140cfa575c6132fa109b88564 (diff)
downloadsystemd-729292d9ddc2ac390749af5deb232c5e749aef6f.tar.gz
test: suppress not-found errors for `selinuxenabled`
if the binary is not available.
Diffstat (limited to 'test/TEST-13-NSPAWN-SMOKE')
-rwxr-xr-xtest/TEST-13-NSPAWN-SMOKE/test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/TEST-13-NSPAWN-SMOKE/test.sh b/test/TEST-13-NSPAWN-SMOKE/test.sh
index 3d1e50447c..65c1e9be3d 100755
--- a/test/TEST-13-NSPAWN-SMOKE/test.sh
+++ b/test/TEST-13-NSPAWN-SMOKE/test.sh
@@ -17,7 +17,7 @@ test_append_files() {
busybox="$(type -P busybox-static || type -P busybox)"
inst_simple "$busybox" "$(dirname "$busybox")/busybox"
- if selinuxenabled >/dev/null; then
+ if command -v selinuxenabled >/dev/null && selinuxenabled; then
image_install selinuxenabled
cp -ar /etc/selinux "$workspace/etc/selinux"
fi