Skip to content

Commit 2cfaffc

Browse files
committed
test: add TEST_SKIP to mkosi integration test wrapper
Takes a space-separate list of test names, allows to skip one or more tests (cherry picked from commit ddc91af)
1 parent 5a5478a commit 2cfaffc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/README.testsuite

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ or Debian's default kernel path and initrd are used by default.)
237237
A script will try to find your qemu binary. If you want to specify a different
238238
one with `$QEMU_BIN`.
239239

240+
`TEST_SKIP`: takes a space separated list of tests to skip.
241+
240242
### Debugging the qemu image
241243

242244
If you want to log in the testsuite virtual machine, use `TEST_SHELL=1`

test/integration-test-wrapper.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ def main():
6161
print(f"TEST_NO_QEMU=1, skipping {args.name}", file=sys.stderr)
6262
exit(77)
6363

64+
if args.name in os.getenv("TEST_SKIP", "").split():
65+
print(f"Skipping {args.name} due to TEST_SKIP", file=sys.stderr)
66+
exit(77)
67+
6468
keep_journal = os.getenv("TEST_SAVE_JOURNAL", "fail")
6569
shell = bool(int(os.getenv("TEST_SHELL", "0")))
6670

0 commit comments

Comments
 (0)