summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck4
1 files changed, 3 insertions, 1 deletions
diff --git a/check b/check
index 549725eb..71b9fbd0 100755
--- a/check
+++ b/check
@@ -592,7 +592,9 @@ _expunge_test()
local TEST_ID="$1"
for f in "${exclude_tests[@]}"; do
- if [ "${TEST_ID}" == "$f" ]; then
+ # $f may contain traling spaces and comments
+ local id_regex="^${TEST_ID}\b"
+ if [[ "$f" =~ ${id_regex} ]]; then
echo " [expunged]"
return 0
fi