Skip to content

Commit

Permalink
Fix docker stops containers e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
godrei committed Jun 25, 2024
1 parent 4edc26d commit 491093d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _tests/integration/docker_stop_containers_bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ workflows:
#!/usr/bin/env bash
set -ex
INITIAL_CONTAINER_NUM=$(docker ps -q | wc -l)
envman add --key INITIAL_CONTAINER_NUM --value "INITIAL_CONTAINER_NUM"
envman add --key INITIAL_CONTAINER_NUM --value "$INITIAL_CONTAINER_NUM"
- with:
container: container-1
services:
Expand All @@ -50,7 +50,7 @@ workflows:
#!/usr/bin/env bash
set -ex
CONTAINER_NUM=$(docker ps -q | wc -l)
if [ "$CONTAINER_NUM" -ne "INITIAL_CONTAINER_NUM" ]; then
echo "Expected $INITIAL_CONTAINER_NUM containers, got CONTAINER_NUM"
if [ "$CONTAINER_NUM" -ne "$INITIAL_CONTAINER_NUM" ]; then
echo "Expected $INITIAL_CONTAINER_NUM containers, got $CONTAINER_NUM"
exit 1
fi

0 comments on commit 491093d

Please sign in to comment.