From 4c0783353a2bf3698843072c31352ca92c432757 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sat, 28 Mar 2020 21:19:40 +0900 Subject: [PATCH] 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. --- tools/testbuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testbuild.sh b/tools/testbuild.sh index 03793da549f..82b210a89bc 100755 --- a/tools/testbuild.sh +++ b/tools/testbuild.sh @@ -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"