Skip to content

Commit b42a7e1

Browse files
committed
Correct use of ERRORLEVEL in cmd scripts.
1 parent a65fe27 commit b42a7e1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

conda-recipe/bld.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ cmake -G Ninja ^
1414
"-DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX%" ^
1515
"-DDPCPP_ROOT=%DPCPP_ROOT%" ^
1616
"%SRC_DIR%/oneapi_wrapper"
17-
IF %ERRORLEVEL% NEQ 0 exit 1
17+
IF ERRORLEVEL 1 exit 1
1818

1919
ninja -n
2020
ninja install
21-
IF %ERRORLEVEL% NEQ 0 exit 1
21+
IF ERRORLEVEL 1 exit 1
2222

2323
cd ..
2424

@@ -33,4 +33,4 @@ set "DPPL_ONEAPI_INTERFACE_INCLDIR=%LIBRARY_PREFIX%/include"
3333
"%PYTHON%" setup.py clean --all
3434
"%PYTHON%" setup.py build
3535
"%PYTHON%" setup.py install
36-
IF %ERRORLEVEL% NEQ 0 exit 1
36+
IF ERRORLEVEL 1 exit 1

conda-recipe/run_test.bat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
call "%ONEAPI_ROOT%/compiler/latest/env/vars.bat"
2-
IF %ERRORLEVEL% NEQ 0 exit 1
2+
IF ERRORLEVEL 1 exit 1
33

44
@echo on
55

66
"%PYTHON%" -c "import dppl"
7-
IF %ERRORLEVEL% NEQ 0 exit 1
7+
IF ERRORLEVEL 1 exit 1
88

99
"%PYTHON%" -c "import dppl.ocldrv"
10-
IF %ERRORLEVEL% NEQ 0 exit 1
10+
IF ERRORLEVEL 1 exit 1
1111

1212
"%PYTHON%" -m unittest -v dppl.tests
13-
IF %ERRORLEVEL% NEQ 0 exit 1
13+
IF ERRORLEVEL 1 exit 1

0 commit comments

Comments
 (0)