AppVeyor must be failed when pytest has any test failures.

This commit is contained in:
shimizukawa 2019-01-13 15:30:47 +09:00
parent 0457d6ebba
commit cdc5241a3b

View File

@ -35,7 +35,7 @@ test_script:
if (-not $tests) { $tests = '' }
& "C:\Python$($env:PYTHON)\python.exe" -m pytest $test_ignore.Split(' ') --junitxml .junit.xml $tests.Split(' ')
Pop-Location
if ($LastExitCode -eq 1) { Write-Host "Test Failures Occurred, leaving for test result parsing" }
if ($LastExitCode -eq 1) { Write-Host "Test Failures Occurred, leaving for test result parsing"; exit $LastExitCode }
elseif ($LastExitCode -ne 0) { Write-Host "Other Error Occurred, aborting"; exit $LastExitCode }
after_test: