summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2015-06-04 12:30:30 +0200
committerLubomir Rintel <lkundrak@v3.sk>2015-06-04 14:29:10 +0200
commitdf0676ab00673a76d814762d30b4fab708812b75 (patch)
treea936a5abff64a69425cd50d99d75b4b06e3b1366
parentd909e76d9ea21c74e1db9a5e671794a0b1234ad1 (diff)
downloadNetworkManager-df0676ab00673a76d814762d30b4fab708812b75.tar.gz
tests: delete the valgrind logs if they're empty
-rwxr-xr-xtools/run-test-valgrind.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/run-test-valgrind.sh b/tools/run-test-valgrind.sh
index 0cdada7b6b..cd53306b4c 100755
--- a/tools/run-test-valgrind.sh
+++ b/tools/run-test-valgrind.sh
@@ -50,6 +50,9 @@ if [ $RESULT -ne 0 -a $RESULT -ne 77 ]; then
echo Files without debugging symbols: $UNRESOLVED >&2
fi
fi
+ exit $RESULT
fi
+find -name "$LOGFILE" -size 0 -delete
+
exit $RESULT