test_e2e.sh: replace test regex for glob match

Don't quote rhs of =~, it'll match literally rather than as a
regex. Fixes SC2076. Part of #891.
This commit is contained in:
Raúl Benencia 2024-06-23 15:57:22 -07:00 committed by Tim Hockin
parent 9b980c479b
commit 3200ee55f6
1 changed files with 1 additions and 1 deletions

View File

@ -3444,7 +3444,7 @@ for arg; do
if [[ "${t}" =~ ${arg} ]]; then if [[ "${t}" =~ ${arg} ]]; then
nmatches=$((nmatches+1)) nmatches=$((nmatches+1))
# Don't run tests twice, just keep the first match. # Don't run tests twice, just keep the first match.
if [[ " ${tests_to_run[*]} " =~ " ${t} " ]]; then if [[ " ${tests_to_run[*]} " == *" ${t} "* ]]; then
continue continue
fi fi
tests_to_run+=("${t}") tests_to_run+=("${t}")