Skip to content

Commit

Permalink
Update appveyor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LMBooth authored Oct 1, 2023
1 parent b1a1ceb commit a344bd2
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,16 @@ build: off

test_script:
- "echo 'About to run tests...'"
# Set timeout for pytest (e.g., 300 seconds)--timeout=1000
#- "pytest Tests/ || exit 0"
- "pytest Tests/ || exit /b 0"

#- "pytest Tests/"
# Run pytest and capture its exit code
- "pytest Tests/ || SET PYTEST_ERRORLEVEL=%errorlevel%"

# Check if pytest failed (assuming non-zero exit code indicates failure)
- "if %PYTEST_ERRORLEVEL% neq 0 ("
- " echo 'Pytest failed. Terminating python process.'"
- " taskkill /IM python.exe /F"
- ") else ("
- " echo 'Pytest succeeded.'"
- ")"

- "echo 'Finished running tests.'"
- "if %errorlevel% neq 0 exit /b %errorlevel%"

0 comments on commit a344bd2

Please sign in to comment.