summary refs log tree commit diff
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-11-30 16:42:38 +0100
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2020-11-30 16:53:48 +0100
commit7d776e4c0e51c1bff050d23470f15b145009e145 (patch)
tree38052acc9ec99d8ef16644fdf98bb8976624a3ec
parent415f284982888628091f1b73f67c86d9dfc816f0 (diff)
test(warteraum): fix reporting if valgrind reports errors
-rwxr-xr-xwarteraum/test/run8
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"