test: bypass selinux integration test if selinux policy devel package is not installed
With this "sudo ./run-integration-tests.sh" should work fully without exception, even on systems lacking SELinux (in which case that test will just be skipped)
This commit is contained in:
parent
29f74559d4
commit
67321fdf3e
|
@ -10,6 +10,9 @@ TEST_NO_NSPAWN=1
|
||||||
# selinux-policy-targeted
|
# selinux-policy-targeted
|
||||||
# selinux-policy-devel
|
# 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_BASE_DIR/test-functions
|
. $TEST_BASE_DIR/test-functions
|
||||||
SETUP_SELINUX=yes
|
SETUP_SELINUX=yes
|
||||||
KERNEL_APPEND="$KERNEL_APPEND selinux=1 security=selinux"
|
KERNEL_APPEND="$KERNEL_APPEND selinux=1 security=selinux"
|
||||||
|
|
Loading…
Reference in New Issue