From 25259a88a22cd850f809e2ece960ba49ef061bd6 Mon Sep 17 00:00:00 2001 From: Phoeniix Zhao Date: Mon, 26 Feb 2024 17:05:46 +0800 Subject: [PATCH] fix: fix validation test stuck issue Signed-off-by: Phoeniix Zhao --- scripts/common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/common.sh b/scripts/common.sh index 82092fab17..0f23cab311 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -13,7 +13,7 @@ function common::run_container() { docker run -d -it --rm --name=node${ith} --net=xline_net \ --ip=${SERVERS[$ith]} --cap-add=NET_ADMIN --cpu-shares=1024 \ -m=512M -v ${DIR}:/mnt ${XLINE_IMAGE} bash & - wait + wait $! log::info container node${ith} started } @@ -24,7 +24,7 @@ function common::stop_container() { if [ -n "$docker_id" ]; then docker stop $docker_id fi - wait + wait $! log::info container ${image_name} stopped } @@ -34,7 +34,7 @@ function common::run_etcd_client() { docker run -d -it --rm --name=client \ --net=xline_net --ip=${SERVERS[0]} --cap-add=NET_ADMIN \ --cpu-shares=1024 -m=512M -v ${DIR}:/mnt ${ETCDCTL_IMAGE} bash & - wait + wait $! log::info container etcdctl started }