Skip to content

Commit

Permalink
Explicitly check error code from pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Jan 23, 2024
1 parent d1338b7 commit 26cb9f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/buildkite/test-win64-gpu.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Foreach-Object {

Write-Host "--- Run Python tests"
python -X faulthandler -m pytest -v -s -rxXs --fulltrace tests/python
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }
Write-Host "--- Run Python tests with GPU"
python -X faulthandler -m pytest -v -s -rxXs --fulltrace -m "(not slow) and (not mgpu)"`
tests/python-gpu
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }

0 comments on commit 26cb9f0

Please sign in to comment.