1
0
mirror of https://github.com/etcd-io/etcd.git synced 2026-02-05 06:46:49 +01:00

Fix run_go_tests_expanding_packages argument parsing

Escape the regular expression, and ensure to capture go.etcd.io
packages, too. As defined in `run_go_tests`.

Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
Ivan Valdes
2025-12-17 16:30:51 -08:00
parent 893aab08c6
commit 5718233f0b

View File

@@ -354,7 +354,7 @@ function run_go_tests_expanding_packages {
local packages=()
local args=()
for arg in "$@"; do
if [[ "${arg}" =~ ./ ]]; then
if [[ "${arg}" =~ ^\./ || "${arg}" =~ ^go\.etcd\.io/etcd ]]; then
packages+=("${arg}")
else
args+=("${arg}")