Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove debug logging from test runner
Browse files Browse the repository at this point in the history
m90 committed Dec 12, 2023
1 parent dd3c85b commit af588a7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test/test.sh
Original file line number Diff line number Diff line change
@@ -57,25 +57,18 @@ for dir in $(find $find_args | sort); do

retry_counter=0
until timeout 5 docker exec $sandbox /bin/sh -c 'docker info' > /dev/null 2>&1; do
echo "retry counter at $retry_counter"
if [ $retry_counter -gt 20 ]; then
echo "Gave up waiting for Docker daemon to become ready after 20 attempts"
exit 1
fi

docker inspect $sandbox --format '{{ .State.Running }}'
if [ "$(docker inspect $sandbox --format '{{ .State.Running }}')" = "false" ]; then
echo "sandbox not running, trying to recreate"
docker rm $sandbox
echo "removed sandbox"
docker run $docker_run_args offen/docker-volume-backup:test-sandbox
echo "created sandbox"
fi

echo "sleeping a bit"
sleep 0.5
retry_counter=$((retry_counter+1))
echo "incremented retry counter after sleeping"
done

docker exec $sandbox /bin/sh -c "docker load -i /cache/image.tar.gz"

0 comments on commit af588a7

Please sign in to comment.