From 760d511ece8fba7ae69700e5c8b97afa3e12b4f2 Mon Sep 17 00:00:00 2001 From: Abhishek Kona Date: Tue, 5 Mar 2013 16:49:38 -0800 Subject: [PATCH] Fix Bash Script to run valgrind. Test Plan: bash -n Reviewers: emayanke Differential Revision: https://reviews.facebook.net/D9129 --- valgrind_test.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/valgrind_test.sh b/valgrind_test.sh index 09fc41232..6ae6ee64b 100755 --- a/valgrind_test.sh +++ b/valgrind_test.sh @@ -5,14 +5,10 @@ VALGRIND_DIR=VALGRIND_LOGS make valgrind_check NUM_FAILED_TESTS=`wc -l $VALGRIND_DIR/valgrind_failed_tests | awk '{print $1}'` -if [ $NUM_FAILED_TESTS -le '1' ]; then -{ - echo No tests have valgrind errors; - exit 0; -} +if [ $NUM_FAILED_TESTS -le 1 ]; then + echo No tests have valgrind errors + exit 0 else -{ - cat $VALGRIND_DIR/valgrind_failed_tests; - exit 1; -} + cat $VALGRIND_DIR/valgrind_failed_tests + exit 1 fi