2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-02-20 02:55:39 +00:00

python3.pkgs.scipy: really exit when tests fail.

This commit is contained in:
Doron Behar 2023-08-01 14:17:19 +03:00
parent 2abdb71b99
commit 01e53f7065

View File

@ -142,7 +142,7 @@ in buildPythonPackage {
runHook preCheck
pushd "$out"
export OMP_NUM_THREADS=$(( $NIX_BUILD_CORES / 4 ))
${python.interpreter} -c "import scipy; scipy.test('fast', verbose=10, parallel=$NIX_BUILD_CORES)"
${python.interpreter} -c "import scipy, sys; sys.exit(scipy.test('fast', verbose=10, parallel=$NIX_BUILD_CORES) != True)"
popd
runHook postCheck
'';