valgrind.yml: actually fail the workflow when an error is detected (#4716)
This commit is contained in:
parent
c99c444877
commit
7876e1064f
|
@ -40,12 +40,15 @@ jobs:
|
|||
|
||||
- name: Run valgrind
|
||||
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
|
||||
exit $ec
|
||||
env:
|
||||
DEBUGINFOD_URLS: https://debuginfod.ubuntu.com
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: success() || failure()
|
||||
with:
|
||||
name: Logs
|
||||
path: ./*.log
|
||||
|
|
Loading…
Reference in New Issue