From 35e1aa82cb94435462ab0f138b003646d9822364 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sat, 28 Mar 2020 21:25:27 +0900 Subject: [PATCH] tools/testbuild.sh: Allow spaces in comments --- tools/testbuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testbuild.sh b/tools/testbuild.sh index 4ddbf4bd79..03793da549 100755 --- a/tools/testbuild.sh +++ b/tools/testbuild.sh @@ -131,7 +131,7 @@ fi export APPSDIR -testlist=`grep -v "^-" $testfile || true` +testlist=`grep -v -E "^(-|#)" $testfile || true` blacklist=`grep "^-" $testfile || true` cd $nuttx || { echo "ERROR: failed to CD to $nuttx"; exit 1; } @@ -259,7 +259,7 @@ for line in $testlist; do for i in ${list}; do dotest $i${line/$dir/} done - elif [ "X$firstch" != "X#" ]; then + else dotest $line fi done