Skip to content

Commit

Permalink
wait for the docker container to stop before removing it
Browse files Browse the repository at this point in the history
  • Loading branch information
rhansen committed Jan 31, 2016
1 parent c56fc47 commit 52e4377
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/build_test_env.sh
Expand Up @@ -56,7 +56,11 @@ CONFIG=/tmp/python-gitlab.cfg
cleanup() {
rm -f "${CONFIG}"
log "Stopping gitlab-test docker container..."
docker stop gitlab-test >/dev/null 2>&1
docker stop gitlab-test >/dev/null 2>&1 &
docker_stop_pid=$!
log "Waiting for gitlab-test docker container to exit..."
docker wait gitlab-test >/dev/null 2>&1
wait "${docker_stop_pid}"
log "Removing gitlab-test docker container..."
docker rm gitlab-test >/dev/null 2>&1
log "Deactivating Python virtualenv..."
Expand Down

0 comments on commit 52e4377

Please sign in to comment.