From 8eb31d5f6534d99adc1b585728515bb55d6836d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Sun, 23 Jun 2024 15:57:22 -0700 Subject: [PATCH] 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. --- test_e2e.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")