]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add TEST_SKIP to mkosi integration test wrapper
authorLuca Boccassi <bluca@debian.org>
Wed, 14 Aug 2024 21:49:10 +0000 (22:49 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 15 Aug 2024 08:39:51 +0000 (10:39 +0200)
Takes a space-separate list of test names, allows to skip one or more tests

test/README.testsuite
test/integration-test-wrapper.py

index 3bff49f7bb8093f2978597c4e2222d2bfc142e3a..6320e9492afa96cc9977ac3613111ec2d5f108db 100644 (file)
@@ -237,6 +237,8 @@ or Debian's default kernel path and initrd are used by default.)
 A script will try to find your qemu binary. If you want to specify a different
 one with `$QEMU_BIN`.
 
+`TEST_SKIP`: takes a space separated list of tests to skip.
+
 ### Debugging the qemu image
 
 If you want to log in the testsuite virtual machine, use `TEST_SHELL=1`
index 783c05f90bfb61f6aa5252adee18927918a39ab6..09310437d7cb28c90e5e5605971db77a8854537a 100755 (executable)
@@ -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")))