Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 449f92f

Browse files
committed
cli integ: don't fetch busybox if it exists
Don't make calls to the registry if the image exists already. Docker-DCO-1.1-Signed-off-by: Cristian Staretu <[email protected]> (github: unclejack)
1 parent 931f065 commit 449f92f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

hack/make/test-integration-cli

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ bundle_test_integration_cli() {
2929

3030
# pull the busybox image before running the tests
3131
sleep 2
32-
( set -x; docker pull busybox )
3332

33+
if ! docker inspect busybox &> /dev/null; then
34+
( set -x; docker pull busybox )
35+
fi
36+
3437
bundle_test_integration_cli
3538

3639
DOCKERD_PID=$(set -x; cat $DEST/docker.pid)

0 commit comments

Comments
 (0)