summaryrefslogtreecommitdiff
path: root/tests/common
diff options
context:
space:
mode:
Diffstat (limited to 'tests/common')
-rw-r--r--tests/common8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/common b/tests/common
index ea9a569b..61780486 100644
--- a/tests/common
+++ b/tests/common
@@ -51,9 +51,13 @@ run_mayfail()
echo "############### $@" >> $RESULTS 2>&1
if [ "$TEST_LOG" = 'tty' ]; then echo "CMD(mayfail): $@" > /dev/tty; fi
if [ "$1" = 'root_helper' ]; then
- "$@" >> $RESULTS 2>&1 || _log "failed (ignored): $@"
+ "$@" >> $RESULTS 2>&1
else
- $INSTRUMENT "$@" >> $RESULTS 2>&1 || _log "failed (ignored): $@"
+ $INSTRUMENT "$@" >> $RESULTS 2>&1
+ fi
+ if [ $? != 0 ]; then
+ echo "failed (ignored): $@" >> $RESULTS
+ return 1
fi
}