Skip to content

Commit 91161a8

Browse files
debug: errorlevel conditionals (#2285)
Wheels tests were failing because some python abrupt failures (or windows access violations) would use an exit code that was both non-zero and non-1. This should capture everything that isn't an exit code of 0.
1 parent c844b26 commit 91161a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

conda-recipe/run_test.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ if not defined PYTHON (
3232

3333

3434
"%PYTHON%" -c "import dpnp; print(dpnp.__version__)"
35-
if errorlevel 1 exit 1
35+
if %errorlevel% neq 0 exit 1
3636

3737
"%PYTHON%" -m dpctl -f
38-
if errorlevel 1 exit 1
38+
if %errorlevel% neq 0 exit 1
3939

4040
"%PYTHON%" -m pytest -ra --pyargs dpnp
41-
if errorlevel 1 exit 1
41+
if %errorlevel% neq 0 exit 1

0 commit comments

Comments
 (0)