aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2021-07-08 15:57:48 +0100
committerDaniel Mensinger <daniel@mensinger-ka.de>2021-07-12 19:44:29 +0200
commit317f9555a71e70429e8a8ac6c4fe71493c2ea936 (patch)
tree697620ec29e9906134464616475cdeafe4ee22a8
parentf6cb717bbad3c471854074491f851270b7d4f3f5 (diff)
downloadmeson-317f9555a71e70429e8a8ac6c4fe71493c2ea936.zip
meson-317f9555a71e70429e8a8ac6c4fe71493c2ea936.tar.gz
meson-317f9555a71e70429e8a8ac6c4fe71493c2ea936.tar.bz2
azure: propagate run_tests.py exit code
Propagate the run_tests.py exit code, rather than overwriting it with the codecov exit code.
-rw-r--r--ci/run.ps14
1 files changed, 4 insertions, 0 deletions
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