From a9c9fbc7dfe21183ac8751d3aa2eeccc741df320 Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Fri, 17 Oct 2014 16:40:27 +0100 Subject: [PATCH] Unittest - Only run tests that have execute bit set --- test/run_all.in | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/test/run_all.in b/test/run_all.in index 87c601093..3e311c1ba 100755 --- a/test/run_all.in +++ b/test/run_all.in @@ -5,16 +5,20 @@ if [ x"$1" = x"--verbose" ]; then for i in ${TESTBLOB} do - echo '#' $i - $i > test.log 2>&1 - while read LINE - do - echo "$LINE" - done < test.log - if [ $? -ne 0 ]; then - rc=1 + if [[ -x "$i" ]]; then + echo '#' $i + $i > test.log 2>&1 + while read LINE + do + echo "$LINE" + done < test.log + if [ $? -ne 0 ]; then + rc=1 + fi + rm test.log + else + echo "# Skipping $(basename $i) execute bit not set" fi - rm test.log done exit $rc else