From: Daan De Meyer Date: Wed, 8 Jan 2025 09:25:05 +0000 (+0100) Subject: fmf: Don't fail if we can't put selinux in permissive mode X-Git-Tag: v257.3~137 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed729eca0cc82abce7966eba5ab786a7a3cbce4c;p=thirdparty%2Fsystemd.git 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. (cherry picked from commit 0250db0139b159cb9e6c1a87ad91ffdd03e80236) --- diff --git a/test/fmf/integration-tests/test.sh b/test/fmf/integration-tests/test.sh index 4984fb119b5..fe139567bdf 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: