Skip to content

Commit 9751aa2

Browse files
authored
Update docker_compose_test.sh
1 parent d4fd1af commit 9751aa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker_compose_test/docker_compose_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ echo "$docker_compose_up_cmd" | bash
7272
result=$?
7373

7474
# Figure out the exit code of the test container incase it never actually started.
75-
docker_compose_ps_cmd="docker compose -f $ABSOLUTE_COMPOSE_FILE_PATH ps -qa $DOCKER_COMPOSE_TEST_CONTAINER"
75+
docker_compose_ps_cmd="$docker_compose_bin -f $ABSOLUTE_COMPOSE_FILE_PATH ps -qa $DOCKER_COMPOSE_TEST_CONTAINER"
7676
echo "running: $docker_compose_ps_cmd"
77-
container_id="$(docker_compose_ps_cmd)"
77+
container_id="$docker_compose_ps_cmd" | bash
7878
echo "container id: $container_id"
7979

8080
EXIT_CODE=$(docker inspect $container_id --format='{{.State.ExitCode}}' 2>/dev/null)

0 commit comments

Comments
 (0)