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)
This commit is contained in:
Artturin 2024-11-17 00:31:51 +02:00 committed by github-actions[bot]
parent ab131d43ac
commit a49bc5c9e5

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[@]}"