mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
python3Packages.pytest-xdist: fix hook being applied multiple times
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user