From 94cd3df675aa94e48eadf32a443448b7c39aaa44 Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Mon, 10 Nov 2014 11:40:18 +0000 Subject: [PATCH] Unittest - Also check for execute bit if not running in verbose mode --- test/run_all.in | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/test/run_all.in b/test/run_all.in index b90a3abdb..d400a68e4 100755 --- a/test/run_all.in +++ b/test/run_all.in @@ -39,16 +39,20 @@ else for i in ${TESTBLOB} do - echo '#' $i >>all.log + if [ -x "$i" ]; then + echo '#' $i >>all.log - if [ $BAR -eq 1 ]; then - $VRAMSTEG --label 'All tests' --min 0 --max $TOTAL --current $COUNT --percentage --start $START --estimate - COUNT=`expr $COUNT + 1` - fi + if [ $BAR -eq 1 ]; then + $VRAMSTEG --label 'All tests' --min 0 --max $TOTAL --current $COUNT --percentage --start $START --estimate + COUNT=`expr $COUNT + 1` + fi - $i >> all.log 2>&1 - if [ $? -ne 0 ]; then - rc=1 + $i >> all.log 2>&1 + if [ $? -ne 0 ]; then + rc=1 + fi + else + echo "# Skipping $(basename $i) execute bit not set" >> all.log 2>&1 fi done