From 317f9555a71e70429e8a8ac6c4fe71493c2ea936 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Thu, 8 Jul 2021 15:57:48 +0100 Subject: azure: propagate run_tests.py exit code Propagate the run_tests.py exit code, rather than overwriting it with the codecov exit code. --- ci/run.ps1 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ci') diff --git a/ci/run.ps1 b/ci/run.ps1 index 961c423..a0b9479 100644 --- a/ci/run.ps1 +++ b/ci/run.ps1 @@ -77,6 +77,8 @@ echo "=== Start running tests ===" # does that by default so we need to forward it. cmd /c "python 2>&1 ./tools/run_with_cov.py run_tests.py --backend $env:backend $env:extraargs" +$result = $LastExitCode + echo "" echo "" echo "=== Gathering coverage report ===" @@ -91,3 +93,5 @@ python3 -m coverage report git clone https://github.com/mensinda/codecov-python python3 -m pip install --ignore-installed ./codecov-python python3 -m codecov -f .coverage/coverage.xml -n "VS$env:compiler $env:arch $env:backend" -c $env:SOURCE_VERSION + +exit $result -- cgit v1.1