From 462759dd3319d47f4c09a63ee8dfc5deab7eef63 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 21 Sep 2022 01:38:30 -0400 Subject: mtest: implement a maxfail option This allows early exit of the project tests once a certain number of failures are detected. For example `meson test --maxfail=1` will abort as soon as a single test fails. Currently running tests are marked as failed via INTERRUPT. Resolves #9352 --- docs/markdown/snippets/test-maxfail.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 docs/markdown/snippets/test-maxfail.md (limited to 'docs') diff --git a/docs/markdown/snippets/test-maxfail.md b/docs/markdown/snippets/test-maxfail.md new file mode 100644 index 000000000..148797707 --- /dev/null +++ b/docs/markdown/snippets/test-maxfail.md @@ -0,0 +1,6 @@ +## Option to allow meson test to fail fast after the first failing testcase + +`meson test --maxfail=1` will now cause all pending or in-progress tests to be +canceled or interrupted after 1 test is marked as failing. This can be used for +example to quit a CI run and avoid burning additional time as soon as it is +known that the overall return status will be failing. -- cgit v1.2.3