From c492c5e36d26bbc631d1e1de6c04a89a30552fd1 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Wed, 26 Feb 2014 21:38:21 -0300 Subject: [PATCH] Fix travis script It was broke because the ls command failed when no valgrind.* file were found --- scripts/travis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/travis.sh b/scripts/travis.sh index 29cb923e75..c956d8b760 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh @@ -5,7 +5,7 @@ make cmake CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$PWD/dist" make echo "Running tests with valgrind..." if ! make test > /dev/null 2>&1; then - failed=$(ls src/testdir/valgrind.*) + failed=$(ls src/testdir/valgrind.* || true) if [ -n "$failed" ]; then echo "Memory leak detected" >&2 cat src/testdir/valgrind.*