From 58318bbc2875b1f9c4cde8b4a858a6288190d336 Mon Sep 17 00:00:00 2001 From: liuhaitao Date: Tue, 3 Mar 2020 17:44:03 +0800 Subject: [PATCH] tools/testbuild.sh: prevent grep from exiting in case of nomatch Prevent grep from exiting in case of nomatch for blacklist when testbuild.sh called with -x option which set -e in bash. --- tools/testbuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testbuild.sh b/tools/testbuild.sh index ad8f82c29d..5cbb82c1a2 100755 --- a/tools/testbuild.sh +++ b/tools/testbuild.sh @@ -131,8 +131,8 @@ fi export APPSDIR -testlist=`grep -v "^-" $testfile` -blacklist=`grep "^-" $testfile` +testlist=`grep -v "^-" $testfile || true` +blacklist=`grep "^-" $testfile || true` cd $nuttx || { echo "ERROR: failed to CD to $nuttx"; exit 1; }