Skip to content

Commit 3cff869

Browse files
committed
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. (cherry picked from commit f5c626d)
1 parent 88a0d3d commit 3cff869

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/integration-test-wrapper.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,11 @@ def main() -> None:
395395
shell = bool(int(os.getenv('TEST_SHELL', '0')))
396396
summary = Summary.get(args)
397397

398+
# Keep list in sync with TEST-06-SELINUX.sh
399+
if args.name == 'TEST-06-SELINUX' and summary.distribution not in ('fedora', 'centos'):
400+
print('Skipping TEST-06-SELINUX, only enabled for Fedora/CentOS', file=sys.stderr)
401+
exit(77)
402+
398403
if shell and not sys.stdin.isatty():
399404
print(
400405
'--interactive must be passed to meson test to use TEST_SHELL=1',

0 commit comments

Comments
 (0)