test_: fix exit code
This commit is contained in:
parent
8c1df3d05e
commit
9b415cd466
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue