diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2020-11-30 16:42:38 +0100 |
---|---|---|
committer | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2020-11-30 16:53:48 +0100 |
commit | 7d776e4c0e51c1bff050d23470f15b145009e145 (patch) | |
tree | 38052acc9ec99d8ef16644fdf98bb8976624a3ec | |
parent | 415f284982888628091f1b73f67c86d9dfc816f0 (diff) |
test(warteraum): fix reporting if valgrind reports errors
-rwxr-xr-x | warteraum/test/run | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/warteraum/test/run b/warteraum/test/run index 36539ed..5b4a428 100755 --- a/warteraum/test/run +++ b/warteraum/test/run @@ -50,11 +50,11 @@ if command -v pytest > /dev/null; then sleep 1 - grep "All heap blocks were freed" valgrind-log.txt - all_freed=$? + all_freed=0 + no_errors=0 - grep "ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)" valgrind-log.txt - no_errors=$? + grep "All heap blocks were freed" valgrind-log.txt || all_freed=$? + grep "ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)" valgrind-log.txt || no_errors=$? if ! (( $all_freed && $no_errors )); then echo -e "\nvalgrind test\tokay" |