Skip to content

Commit

Permalink
update docker_check_tests.sh (show logs before exit)
Browse files Browse the repository at this point in the history
  • Loading branch information
HadronCollider committed Mar 12, 2024
1 parent 86b2868 commit ca1c746
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/scripts/docker_check_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ while true; do
if docker inspect --format='{{.State.Running}}' "$container_name" | grep -q "false"; then
echo "tests are finished"
EXIT_CODE=$(docker inspect "$container_name" --format='{{.State.ExitCode}}')
docker-compose -f docker-compose-tests.yml logs selenium-tests
if [ "$EXIT_CODE" -eq 0 ]; then
echo "tests finished with code $EXIT_CODE (OK)"
exit 0
Expand Down

0 comments on commit ca1c746

Please sign in to comment.