aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xci/common/submit_coverage.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/ci/common/submit_coverage.sh b/ci/common/submit_coverage.sh
index 218b90d6f4..4e92975d22 100755
--- a/ci/common/submit_coverage.sh
+++ b/ci/common/submit_coverage.sh
@@ -21,7 +21,10 @@ if ! [ -f "$codecov_sh" ]; then
python3 -m pip install --quiet --user gcovr
fi
-python3 -m gcovr --branches --exclude-unreachable-branches --print-summary -j 2 --exclude '.*/auto/.*' --root build --delete -o coverage.xml --xml
+(
+ cd build
+ python3 -m gcovr --branches --exclude-unreachable-branches --print-summary -j 2 --exclude '.*/auto/.*' --root .. --delete -o ../coverage.xml --xml
+)
# Upload to codecov.
# -X gcov: disable gcov, done manually above.