File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,12 @@ echo "$docker_compose_up_cmd" | bash
7272result=$?
7373
7474# Figure out the exit code of the test container incase it never actually started.
75- EXIT_CODE=" $( docker inspect $( $docker_compose_bin -f $ABSOLUTE_COMPOSE_FILE_PATH ps -qa $DOCKER_COMPOSE_TEST_CONTAINER ) --format=' {{.State.ExitCode}}' 2> /dev/null) " | bash
76- echo " EXIT_CODE: $EXIT_CODE "
75+ docker_compose_ps_cmd=" docker compose -f $ABSOLUTE_COMPOSE_FILE_PATH ps -qa $DOCKER_COMPOSE_TEST_CONTAINER "
76+ echo " running: $docker_compose_ps_cmd "
77+ container_id=" $( docker_compose_ps_cmd) "
78+ echo " container id: $container_id "
79+
80+ EXIT_CODE=$( docker inspect $container_id --format=' {{.State.ExitCode}}' 2> /dev/null)
7781if [ " $EXIT_CODE " != " 0" ] || [ -z " $EXIT_CODE " ]; then
7882 echo " Error: $DOCKER_COMPOSE_TEST_CONTAINER container failed or never started!"
7983 exit 1
You can’t perform that action at this time.
0 commit comments