From ba6c943cdbab435ea143e02c6864f0a2a7b5f34f Mon Sep 17 00:00:00 2001 From: Jordan Harlow <109105754+jharlow-intel@users.noreply.github.com> Date: Mon, 27 Jan 2025 13:21:47 -0700 Subject: [PATCH 1/2] debug: errorlevel conditionals --- conda-recipe/run_test.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conda-recipe/run_test.bat b/conda-recipe/run_test.bat index 10b2545448f2..d1464e8f52a0 100644 --- a/conda-recipe/run_test.bat +++ b/conda-recipe/run_test.bat @@ -32,10 +32,10 @@ if not defined PYTHON ( "%PYTHON%" -c "import dpnp; print(dpnp.__version__)" -if errorlevel 1 exit 1 +if errorlevel neq 0 exit 1 "%PYTHON%" -m dpctl -f -if errorlevel 1 exit 1 +if errorlevel neq 0 exit 1 "%PYTHON%" -m pytest -ra --pyargs dpnp -if errorlevel 1 exit 1 +if errorlevel neq 0 exit 1 From ba985943a3bc7e88841c0dda8d17bd14fe090733 Mon Sep 17 00:00:00 2001 From: Jordan Harlow <109105754+jharlow-intel@users.noreply.github.com> Date: Tue, 28 Jan 2025 08:00:43 -0700 Subject: [PATCH 2/2] chore: fix syntax --- conda-recipe/run_test.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conda-recipe/run_test.bat b/conda-recipe/run_test.bat index d1464e8f52a0..f6f6a061c5fa 100644 --- a/conda-recipe/run_test.bat +++ b/conda-recipe/run_test.bat @@ -32,10 +32,10 @@ if not defined PYTHON ( "%PYTHON%" -c "import dpnp; print(dpnp.__version__)" -if errorlevel neq 0 exit 1 +if %errorlevel% neq 0 exit 1 "%PYTHON%" -m dpctl -f -if errorlevel neq 0 exit 1 +if %errorlevel% neq 0 exit 1 "%PYTHON%" -m pytest -ra --pyargs dpnp -if errorlevel neq 0 exit 1 +if %errorlevel% neq 0 exit 1