mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
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.
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user