blob: 30f8af1ba181d5675189262d08f84b2245bd5924 (
plain)
1
2
3
4
5
6
7
8
|
pytestXdistHook() {
appendToVar pytestFlags "--numprocesses=$NIX_BUILD_CORES"
}
if [ -z "${dontUsePytestXdist-}" ] && [ -z "${dontUsePytestCheck-}" ]; then
# The flags should be added before pytestCheckHook runs in preDistPhases.
preInstallCheckHooks+=(pytestXdistHook)
fi
|