From: Luca Boccassi Date: Wed, 2 Apr 2025 01:02:17 +0000 (+0100) Subject: test: skip TEST-06-SELINUX if not on fedora/centos X-Git-Tag: v258-rc1~953 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5c626df2c578e6dd8a059e84026cbdd07b784ba;p=thirdparty%2Fsystemd.git test: skip TEST-06-SELINUX if not on fedora/centos The test skips at runtime on the same condition, but that's already too late as it often gets stuck on boot in Debian/Ubuntu. Check in the meson condition directly so that it's not even started. --- diff --git a/test/integration-tests/integration-test-wrapper.py b/test/integration-tests/integration-test-wrapper.py index 18b35eec7c2..9956a1df0c8 100755 --- a/test/integration-tests/integration-test-wrapper.py +++ b/test/integration-tests/integration-test-wrapper.py @@ -409,6 +409,11 @@ def main() -> None: shell = bool(int(os.getenv('TEST_SHELL', '0'))) summary = Summary.get(args) + # Keep list in sync with TEST-06-SELINUX.sh + if args.name == 'TEST-06-SELINUX' and summary.distribution not in ('fedora', 'centos'): + print('Skipping TEST-06-SELINUX, only enabled for Fedora/CentOS', file=sys.stderr) + exit(77) + if shell and not sys.stdin.isatty(): print( '--interactive must be passed to meson test to use TEST_SHELL=1',