mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
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:
parent
7fc97da0f8
commit
cc4338e435
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user