mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
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:
parent
ab131d43ac
commit
a49bc5c9e5
@ -54,6 +54,10 @@ mesonCheckPhase() {
|
|||||||
local flagsArray=()
|
local flagsArray=()
|
||||||
concatTo flagsArray mesonCheckFlags mesonCheckFlagsArray
|
concatTo flagsArray mesonCheckFlags mesonCheckFlagsArray
|
||||||
|
|
||||||
|
if [ -z "${dontAddTimeoutMultiplier:-}" ]; then
|
||||||
|
flagsArray+=("--timeout-multiplier=0")
|
||||||
|
fi
|
||||||
|
|
||||||
echoCmd 'mesonCheckPhase flags' "${flagsArray[@]}"
|
echoCmd 'mesonCheckPhase flags' "${flagsArray[@]}"
|
||||||
meson test --no-rebuild --print-errorlogs "${flagsArray[@]}"
|
meson test --no-rebuild --print-errorlogs "${flagsArray[@]}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user