summaryrefslogtreecommitdiffstats
path: root/test/fmf
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2025-01-08 10:25:05 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2025-01-08 10:25:05 +0100
commit0250db0139b159cb9e6c1a87ad91ffdd03e80236 (patch)
tree06a5d097e0234efd57a53eb22879c00818a17c98 /test/fmf
parentnamespace-util: two new operations (#35833) (diff)
downloadsystemd-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-xtest/fmf/integration-tests/test.sh4
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: