tools/testbuild.sh: Make blacklist work on macOS

I couldn't find where "\b" was documented.
I guess it's a zero-width word boundary or something like that.
Anyway, it doesn't seem to work on macOS.
This commit is contained in:
YAMAMOTO Takashi
2020-03-28 21:19:40 +09:00
committed by Abdelatif Guettouche
parent 35e1aa82cb
commit 4c0783353a

View File

@@ -198,8 +198,8 @@ function build {
function dotest {
echo "===================================================================================="
config=`echo $1 | cut -d',' -f1`
re=\\b${config/\//:}\\b
if [[ $blacklist =~ $re ]]; then
re="-${config/\//:}[[:space:]]"
if [[ "${blacklist} " =~ $re ]]; then
echo "Skipping: $1"
else
echo "Configuration/Tool: $1"