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 <david@pybricks.com>
pull/8311/head
David Lechner 2022-02-09 10:26:35 -06:00 zatwierdzone przez Damien George
rodzic 0dfd0447fa
commit 28cb573b89
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -80,6 +80,7 @@ after_test:
}
C:\msys64\usr\bin\bash.exe -l -c "make V=1 test_full VARIANT=$($env:PyVariant)"
if ($LASTEXITCODE -ne 0) {
cd (Join-Path $env:APPVEYOR_BUILD_FOLDER 'tests')
& $env:MICROPY_CPYTHON3 run-tests.py --print-failures
throw "Test failure"
}