From 01e53f70657cc8948c7701b5471e62be1282b6a3 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Tue, 1 Aug 2023 14:17:19 +0300 Subject: [PATCH] python3.pkgs.scipy: really exit when tests fail. --- pkgs/development/python-modules/scipy/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/scipy/default.nix b/pkgs/development/python-modules/scipy/default.nix index 8d41b5504e04..cbabcbd72f35 100644 --- a/pkgs/development/python-modules/scipy/default.nix +++ b/pkgs/development/python-modules/scipy/default.nix @@ -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 '';