From 9b415cd4664bf6e967c286bf6c5b73485daf2f06 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 15 Nov 2024 13:13:16 +0100 Subject: [PATCH] test_: fix exit code --- _assets/scripts/run_functional_tests.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/_assets/scripts/run_functional_tests.sh b/_assets/scripts/run_functional_tests.sh index 5134ca3e9..cfd5b9d97 100755 --- a/_assets/scripts/run_functional_tests.sh +++ b/_assets/scripts/run_functional_tests.sh @@ -26,12 +26,6 @@ mkdir -p "${test_results_path}" all_compose_files="-f ${root_path}/docker-compose.anvil.yml -f ${root_path}/docker-compose.test.status-go.yml" project_name="status-go-func-tests-$(date +%s)" -if [ "$(uname)" = "Darwin" ]; then - separator="-" -else - separator="_" -fi - status_backend_count=10 export STATUS_BACKEND_URLS=$(eval echo http://${project_name}-status-backend-{1..${status_backend_count}}:3333 | tr ' ' ,) @@ -52,7 +46,7 @@ docker compose -p ${project_name} ${all_compose_files} logs status-go > "${root_ docker compose -p ${project_name} ${all_compose_files} logs status-backend > "${root_path}/status-backend.log" # Retrieve exit code -exit_code=$(docker inspect ${project_name}${separator}tests-rpc${separator}1 -f '{{.State.ExitCode}}'); +exit_code=$(docker inspect ${project_name}-tests-rpc-1 -f '{{.State.ExitCode}}'); # Cleanup containers echo -e "${GRN}Removing docker containers${RST}"