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

test: fix robustness tests failing with undefined -bin-dir flag

The robustness CI jobs are failing with "flag provided but not defined:
-bin-dir" because the test path includes subpackages (./tests/robustness/...)
that don't register this flag.

PR 20962 changed the test invocation to use ./tests/robustness/... which
runs tests in all subpackages. The validate/ and model/ subpackages contain
unit tests that don't import framework/e2e (which registers -bin-dir), so
they fail when this flag is passed.

PR 21039 attempted to fix the issue but only changed the test runner
function, not the package path.

This change removes the /... suffix to only run tests in the main
robustness package, restoring the original behavior.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas
2025-12-21 16:07:30 -05:00
parent 88feab3eec
commit 386eb3023d

View File

@@ -184,7 +184,7 @@ function e2e_pass {
function robustness_pass {
# e2e tests are running pre-build binary. Settings like --race,-cover,-cpu does not have any impact.
KEEP_GOING_TESTS=true \
run_go_tests ./tests/robustness/... \
run_go_tests ./tests/robustness \
-timeout="${TIMEOUT:-30m}" \
"${RUN_ARG[@]}" \
"$@"