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.
This commit is contained in:
Lennart Poettering 2018-06-05 21:27:01 +02:00
parent 7fc97da0f8
commit cc4338e435
1 changed files with 1 additions and 1 deletions

View File

@ -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