diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2022-09-02 19:39:30 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2022-09-02 22:09:29 +0200 |
commit | 729292d9ddc2ac390749af5deb232c5e749aef6f (patch) | |
tree | 27496cc8eb9473447e7a34f00a696858f00034b1 /test/units | |
parent | test: forward nspawn logs to journal (diff) | |
download | systemd-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-x | test/units/testsuite-13.sh | 2 |
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 |