aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstijn2020-09-10 13:21:21 +0200
committerDamien George2020-09-11 10:56:02 +1000
commit70bec41089eef26122d6c2cbd06bf359bc0ab253 (patch)
tree1874d70ebf9b8766426fac113b262828d6af45cd
parent5b94c610971334019e7301026e0fbbf5950e094d (diff)
windows: Show test failures in the Appveyor builds.
-rw-r--r--ports/windows/.appveyor.yml14
1 files changed, 12 insertions, 2 deletions
diff --git a/ports/windows/.appveyor.yml b/ports/windows/.appveyor.yml
index 2965543b0..4d2d6bd11 100644
--- a/ports/windows/.appveyor.yml
+++ b/ports/windows/.appveyor.yml
@@ -38,7 +38,15 @@ test_script:
- ps: |
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'tests')
& $env:MICROPY_CPYTHON3 run-tests
+ if ($LASTEXITCODE -ne 0) {
+ & $env:MICROPY_CPYTHON3 run-tests --print-failures
+ throw "Test failure"
+ }
& $env:MICROPY_CPYTHON3 run-tests --via-mpy -d basics float micropython
+ if ($LASTEXITCODE -ne 0) {
+ & $env:MICROPY_CPYTHON3 run-tests --print-failures
+ throw "Test failure"
+ }
# After the build/test phase for the MSVC build completes,
# build and test with mingw-w64, release versions only.
@@ -69,9 +77,11 @@ after_test:
}
& $env:MICROPY_CPYTHON3 $testArgs
if ($LASTEXITCODE -ne 0) {
- throw "$env:MSYSTEM tests exited with code $LASTEXITCODE"
+ & $env:MICROPY_CPYTHON3 run-tests --print-failures
+ throw "Test failure"
}
& $env:MICROPY_CPYTHON3 ($testArgs + @('--via-mpy', '-d', 'basics', 'float', 'micropython'))
if ($LASTEXITCODE -ne 0) {
- throw "$env:MSYSTEM mpy-cross tests exited with code $LASTEXITCODE"
+ & $env:MICROPY_CPYTHON3 run-tests --print-failures
+ throw "Test failure"
}