From 045d1a5d932da626a25c8a8c51d7793488fe343b Mon Sep 17 00:00:00 2001 From: Shizun Ge Date: Fri, 6 Dec 2024 15:26:24 -0800 Subject: [PATCH] [tests] fix shellcheck. --- tests/spec_gantry_test_helper.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/spec_gantry_test_helper.sh b/tests/spec_gantry_test_helper.sh index f2a4aa0..8351519 100644 --- a/tests/spec_gantry_test_helper.sh +++ b/tests/spec_gantry_test_helper.sh @@ -386,8 +386,7 @@ _start_registry() { "${REGISTRY_IMAGE}" 2>&1); then local STATUS= while true; do - STATUS=$(docker container inspect "${CID}" --format '{{.State.Status}}' 2>&1) - [ "$?" != "0" ] && break; + STATUS=$(docker container inspect "${CID}" --format '{{.State.Status}}' 2>&1) || break; [ "${STATUS}" = "running" ] && break; _test_check_timeout "60" "${START_TIME}" "_start_registry wait registry running" || return 1 sleep 1