forked from mirrors/nixpkgs
python3Packages.pytest-xdist: fix hook being applied multiple times
This commit is contained in:
parent
2e4bb34c63
commit
008fbda841
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue