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.
This commit is contained in:
liuhaitao 2020-03-03 17:44:03 +08:00 committed by Gregory Nutt
parent 30a48e4217
commit 58318bbc28

View File

@ -131,8 +131,8 @@ fi
export APPSDIR export APPSDIR
testlist=`grep -v "^-" $testfile` testlist=`grep -v "^-" $testfile || true`
blacklist=`grep "^-" $testfile` blacklist=`grep "^-" $testfile || true`
cd $nuttx || { echo "ERROR: failed to CD to $nuttx"; exit 1; } cd $nuttx || { echo "ERROR: failed to CD to $nuttx"; exit 1; }