test_: fix exit code

This commit is contained in:
Anton 2024-11-15 13:13:16 +01:00
parent 8c1df3d05e
commit 9b415cd466
No known key found for this signature in database
GPG Key ID: 1895064B6BA04F95
1 changed files with 1 additions and 7 deletions

View File

@ -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}"