提交 760d511e 编写于 作者: A Abhishek Kona

Fix Bash Script to run valgrind.

Test Plan: bash -n

Reviewers: emayanke

Differential Revision: https://reviews.facebook.net/D9129
上级 e7b726da
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册