mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
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 New Issue
Block a user