1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-21 13:34:21 +03:00

test: fix TEST_SKIP for test cases with subtests

TEST-64-UDEV-STORAGE is invoked with the subtest appended, so TEST_SKIP=TEST-64-UDEV-STORAGE
does not work. Fix it by using TEST_SKIP as a partial match.

Follow-up for ddc91af4ea

(cherry picked from commit 8f4bbd096b)
This commit is contained in:
Luca Boccassi 2024-09-11 12:01:55 +02:00 committed by Luca Boccassi
parent 9d2e086ab4
commit 99fdc0ab68

View File

@ -61,9 +61,10 @@ def main():
print(f"TEST_NO_QEMU=1, skipping {args.name}", file=sys.stderr)
exit(77)
if args.name in os.getenv("TEST_SKIP", "").split():
print(f"Skipping {args.name} due to TEST_SKIP", file=sys.stderr)
exit(77)
for s in os.getenv("TEST_SKIP", "").split():
if s in args.name:
print(f"Skipping {args.name} due to TEST_SKIP", file=sys.stderr)
exit(77)
keep_journal = os.getenv("TEST_SAVE_JOURNAL", "fail")
shell = bool(int(os.getenv("TEST_SHELL", "0")))