diff options
| author | David Lechner <david@pybricks.com> | 2022-02-09 10:26:35 -0600 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-02-18 14:31:52 +1100 |
| commit | 28cb573b89f3d1edfff786f8ee757a93579c41bd (patch) | |
| tree | b7cdd8d70ead27da0c148e90790f9efbceae4842 | |
| parent | 0dfd0447fa6f24bb8ed62b35dbaf91695a255f43 (diff) | |
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>
| -rw-r--r-- | ports/windows/.appveyor.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/windows/.appveyor.yml b/ports/windows/.appveyor.yml index 739484f09..d7192236d 100644 --- a/ports/windows/.appveyor.yml +++ b/ports/windows/.appveyor.yml @@ -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" } |
