meson.setupHook: Add timeout-multiplier

0 ss infinite, nix will take care of the timeout

In loaded environments the tests can take longer to build

(cherry picked from commit 54522e10d5)
(cherry picked from commit a49bc5c9e512fb2bbc5b96c44042a5e330d2116d)
This commit is contained in:
Artturin
2024-11-30 15:11:11 +01:00
committed by Vladimír Čunát
parent c1f4c53d8d
commit 57b1a4b411
+4
View File
@@ -54,6 +54,10 @@ mesonCheckPhase() {
local flagsArray=()
concatTo flagsArray mesonCheckFlags mesonCheckFlagsArray
if [ -z "${dontAddTimeoutMultiplier:-}" ]; then
flagsArray+=("--timeout-multiplier=0")
fi
echoCmd 'mesonCheckPhase flags' "${flagsArray[@]}"
meson test --no-rebuild --print-errorlogs "${flagsArray[@]}"