3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.pytest-xdist: fix hook being applied multiple times

This commit is contained in:
Martin Weinelt 2022-04-02 06:16:42 +02:00
parent 2e4bb34c63
commit 008fbda841

View file

@ -1,7 +1,10 @@
pytestXdistHook() {
pytestFlagsArray+=("--numprocesses=$NIX_BUILD_CORES" "--forked" )
pytestFlagsArray+=(
"--numprocesses=$NIX_BUILD_CORES"
"--forked"
)
}
if [ -z "${dontUsePytestXdist-}" ] && [ -z "${dontUsePytestCheck-}" ]; then
addEnvHooks "$hostOffset" pytestXdistHook
preDistPhases+=" pytestXdistHook"
fi