summaryrefslogtreecommitdiffstats
path: root/test/units
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/units
parenttest: forward nspawn logs to journal (diff)
downloadsystemd-729292d9ddc2ac390749af5deb232c5e749aef6f.tar.xz
systemd-729292d9ddc2ac390749af5deb232c5e749aef6f.zip
test: suppress not-found errors for `selinuxenabled`
if the binary is not available.
Diffstat (limited to 'test/units')
-rwxr-xr-xtest/units/testsuite-13.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/units/testsuite-13.sh b/test/units/testsuite-13.sh
index 487cc549f4..fb0b3cda16 100755
--- a/test/units/testsuite-13.sh
+++ b/test/units/testsuite-13.sh
@@ -112,7 +112,7 @@ EOF
}
function check_selinux {
- if ! selinuxenabled; then
+ if ! command -v selinuxenabled >/dev/null || ! selinuxenabled; then
echo >&2 "SELinux is not enabled, skipping SELinux-related tests"
return 0
fi