From 88ffbb93b9a10ecac284a68ce8434e6338ec438e Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 18 Oct 2024 16:59:19 +0200 Subject: [PATCH] CI: Add MESON_TEST_MAX_FAIL variable Sets the value to be used for meson test --maxfail. This is useful when bringing up a new testrunner or generally when debugging some changes that cause many test failures. If not set, we set it to 0, meaning disabled. --- .gitlab-ci/run-tests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci/run-tests.sh b/.gitlab-ci/run-tests.sh index dba31cd592..3227981a16 100755 --- a/.gitlab-ci/run-tests.sh +++ b/.gitlab-ci/run-tests.sh @@ -9,6 +9,7 @@ setup=$2 suite=$3 multiplier=${MESON_TEST_TIMEOUT_MULTIPLIER:-1} n_processes=${MESON_TEST_MAX_PROCESSES:-1} +max_fail=${MESON_TEST_MAX_FAIL:-0} # Ignore memory leaks lower in dependencies export LSAN_OPTIONS=suppressions=$srcdir/lsan.supp:print_suppressions=0:detect_leaks=0:allocator_may_return_null=1:symbolize=1 @@ -23,6 +24,7 @@ case "${setup}" in --quiet \ --timeout-multiplier "${multiplier}" \ --num-processes "${n_processes}" \ + --maxfail "${max_fail}" \ --print-errorlogs \ --setup=${setup} \ --suite=${suite//,/ --suite=} \ @@ -49,6 +51,7 @@ case "${setup}" in --quiet \ --timeout-multiplier "${multiplier}" \ --num-processes "${n_processes}" \ + --maxfail "${max_fail}" \ --print-errorlogs \ --setup=${setup} \ --suite=${suite//,/ --suite=} \ @@ -74,6 +77,7 @@ case "${setup}" in --quiet \ --timeout-multiplier "${multiplier}" \ --num-processes "${n_processes}" \ + --maxfail "${max_fail}" \ --print-errorlogs \ --setup=${setup} \ --suite=${suite//,/ --suite=} \