Skip to content

Commit 28cb573

Browse files
dlechdpgeorge
authored andcommitted
windows/appveyor: Fix printing of test failures.
In the `after_test` section, the current directory is `ports/windows` when tests are run, so running `run-tests.py` without changing the directory or specifying a path causes a file not found error. This commit fixes the problem by changing the directory before calling `run-tests.py`. Signed-off-by: David Lechner <[email protected]>
1 parent 0dfd044 commit 28cb573

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ports/windows/.appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ after_test:
8080
}
8181
C:\msys64\usr\bin\bash.exe -l -c "make V=1 test_full VARIANT=$($env:PyVariant)"
8282
if ($LASTEXITCODE -ne 0) {
83+
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'tests')
8384
& $env:MICROPY_CPYTHON3 run-tests.py --print-failures
8485
throw "Test failure"
8586
}

0 commit comments

Comments
 (0)