test: add TEST_SKIP to mkosi integration test wrapper

Takes a space-separate list of test names, allows to skip one or more tests
This commit is contained in:
Luca Boccassi
2024-08-15 10:39:51 +02:00
committed by Luca Boccassi
parent 3d2157e707
commit ddc91af4ea
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -61,6 +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)
keep_journal = os.getenv("TEST_SAVE_JOURNAL", "fail")
shell = bool(int(os.getenv("TEST_SHELL", "0")))