8000 windows: Show test failures in the Appveyor builds. · tve/micropython@70bec41 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit 70bec41

Browse files
stinosdpgeorge
authored andcommitted
windows: Show test failures in the Appveyor builds.
1 parent 5b94c61 commit 70bec41

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

ports/windows/.appveyor.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,15 @@ test_script:
3838
- ps: |
3939
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'tests')
4040
& $env:MICROPY_CPYTHON3 run-tests
41+
if ($LASTEXITCODE -ne 0) {
42+
& $env:MICROPY_CPYTHON3 run-tests --print-failures
43+
throw "Test failure"
44+
}
4145
& $env:MICROPY_CPYTHON3 run-tests --via-mpy -d basics float micropython
46+
if ($LASTEXITCODE -ne 0) {
47+
& $env:MICROPY_CPYTHON3 run-tests --print-failures
48+
throw "Test failure"
49+
}
4250
4351
# After the build/test phase for the MSVC build completes,
4452
# build and test with mingw-w64, release versions only.
@@ -69,9 +77,11 @@ after_test:
6977
}
7078
& $env:MICROPY_CPYTHON3 $testArgs
7179
if ($LASTEXITCODE -ne 0) {
72-
throw "$env:MSYSTEM tests exited with code $LASTEXITCODE"
80+
& $env:MICROPY_CPYTHON3 run-tests --print-failures
81+
throw "Test failure"
7382
}
7483
& $env:MICROPY_CPYTHON3 ($testArgs + @('--via-mpy', '-d', 'basics', 'float', 'micropython'))
7584
if ($LASTEXITCODE -ne 0) {
76-
throw "$env:MSYSTEM mpy-cross tests exited with code $LASTEXITCODE"
85+
& $env:MICROPY_CPYTHON3 run-tests --print-failures
86+
throw "Test failure"
7787
}

0 commit comments

Comments
 (0)
0