From cc4338e435b1d83d7d2cd572e72036d37e12af96 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 5 Jun 2018 21:27:01 +0200 Subject: [PATCH] tests: tighten check for TEST-06-SELINUX dependencies a bit As it turns out /usr/share/selinux/devel/ is now included in more RPMs than just selinux-policy-devel (specifically container-selinux, which is pulled in by various container related RPMs). Let's hence tighten the dependency check a bit and look for systemd's .if file, which is what we actually care about. --- test/TEST-06-SELINUX/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/TEST-06-SELINUX/test.sh b/test/TEST-06-SELINUX/test.sh index 18856c2459..604ede5b2b 100755 --- a/test/TEST-06-SELINUX/test.sh +++ b/test/TEST-06-SELINUX/test.sh @@ -11,7 +11,7 @@ TEST_NO_NSPAWN=1 # selinux-policy-devel # Check if selinux-policy-devel is installed, and if it isn't bail out early instead of failing -test -d /usr/share/selinux/devel || exit 0 +test -f /usr/share/selinux/devel/include/system/systemd.if || exit 0 . $TEST_BASE_DIR/test-functions SETUP_SELINUX=yes -- 2.25.1