From 02585157f6d718c768c5da9c6440cbc2a0482844 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Wed, 12 Jul 2017 14:46:43 -0700 Subject: [PATCH] test: sync with etcd-agent start in functional_pass Fix https://github.com/coreos/etcd/issues/8211. Signed-off-by: Gyu-Ho Lee --- test | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test b/test index fdcb0198a..ebd468906 100755 --- a/test +++ b/test @@ -101,13 +101,21 @@ function functional_pass { agent_pids="${agent_pids} $pid" done + for a in 1 2 3; do + echo "Waiting for 'etcd-agent' on ${a}9027..." + while ! nc -z localhost ${a}9027; do + sleep 1 + done + done + + echo "Starting 'etcd-tester'" ./bin/etcd-tester \ -agent-endpoints "127.0.0.1:19027,127.0.0.1:29027,127.0.0.1:39027" \ -client-ports 12379,22379,32379 \ -peer-ports 12380,22380,32380 \ -limit 1 \ -schedule-cases "0 1 2 3 4 5" \ - -exit-on-failure + -exit-on-failure && echo "'etcd-tester' succeeded" ETCD_TESTER_EXIT_CODE=$? echo "ETCD_TESTER_EXIT_CODE:" ${ETCD_TESTER_EXIT_CODE}