Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- set -e
- cd "${0%/*}"
- cd ../acceptance-tests
- ping_cancelled=false # Keep track of whether the loop was cancelled, or succeeded
- until docker-compose exec -T test bash -c 'cd /app/e2e-tests; docker ps -f "status=running" | grep -c "e2e-app-runner"' == "1">/dev/null 2>&1; do :; done & # The "&" backgrounds it
- trap "kill $!; ping_cancelled=true" SIGINT
- wait $! # Wait for the loop to exit, one way or another
- trap - SIGINT # Remove the trap, now we're done with it
- echo "Done pinging, cancelled=$ping_cancelled"
- docker-compose exec test bash -c "cd /app/e2e-tests; docker-compose logs -f web"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement