valgrind.yml: actually fail the workflow when an error is detected (#4716)

This commit is contained in:
Oliver Stöneberg 2023-01-18 17:01:26 +01:00 committed by GitHub
parent c99c444877
commit 7876e1064f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -40,12 +40,15 @@ jobs:
- name: Run valgrind - name: Run valgrind
run: | run: |
valgrind --error-limit=yes --leak-check=full --num-callers=50 --show-reachable=yes --track-origins=yes --suppressions=valgrind/testrunner.supp --gen-suppressions=all --log-fd=9 --error-exitcode=42 ./testrunner TestGarbage TestOther TestSimplifyTemplate 9>memcheck.log ec=0
valgrind --error-limit=yes --leak-check=full --num-callers=50 --show-reachable=yes --track-origins=yes --suppressions=valgrind/testrunner.supp --gen-suppressions=all --log-fd=9 --error-exitcode=42 ./testrunner TestGarbage TestOther TestSimplifyTemplate 9>memcheck.log || ec=1
cat memcheck.log cat memcheck.log
exit $ec
env: env:
DEBUGINFOD_URLS: https://debuginfod.ubuntu.com DEBUGINFOD_URLS: https://debuginfod.ubuntu.com
- uses: actions/upload-artifact@v3 - uses: actions/upload-artifact@v3
if: success() || failure()
with: with:
name: Logs name: Logs
path: ./*.log path: ./*.log