diff --git a/test_e2e.sh b/test_e2e.sh index 4ffe5aa..a1a5704 100755 --- a/test_e2e.sh +++ b/test_e2e.sh @@ -3444,7 +3444,7 @@ for arg; do if [[ "${t}" =~ ${arg} ]]; then nmatches=$((nmatches+1)) # Don't run tests twice, just keep the first match. - if [[ " ${tests_to_run[*]} " =~ " ${t} " ]]; then + if [[ " ${tests_to_run[*]} " == *" ${t} "* ]]; then continue fi tests_to_run+=("${t}")