diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2025-01-08 10:25:05 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2025-01-08 10:25:05 +0100 |
commit | 0250db0139b159cb9e6c1a87ad91ffdd03e80236 (patch) | |
tree | 06a5d097e0234efd57a53eb22879c00818a17c98 /test/fmf | |
parent | namespace-util: two new operations (#35833) (diff) | |
download | systemd-0250db0139b159cb9e6c1a87ad91ffdd03e80236.tar.xz systemd-0250db0139b159cb9e6c1a87ad91ffdd03e80236.zip |
fmf: Don't fail if we can't put selinux in permissive mode
The tests might be running unprivileged or in an environment without
selinux so let's not fail if we can't put it in permissive mode.
Diffstat (limited to 'test/fmf')
-rwxr-xr-x | test/fmf/integration-tests/test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fmf/integration-tests/test.sh b/test/fmf/integration-tests/test.sh index 4984fb119b..fe139567bd 100755 --- a/test/fmf/integration-tests/test.sh +++ b/test/fmf/integration-tests/test.sh @@ -4,8 +4,8 @@ set -eux set -o pipefail -# Switch SELinux to permissive, since the tests don't set proper contexts -setenforce 0 +# Switch SELinux to permissive if possible, since the tests don't set proper contexts +setenforce 0 || true # Allow running the integration tests downstream in dist-git with something like # the following snippet which makes the dist-git sources available in $TMT_SOURCE_DIR: |