From 449f92f11ed34d4475fa24e2561b02cc263722bf Mon Sep 17 00:00:00 2001 From: unclejack Date: Sat, 12 Apr 2014 03:49:49 +0300 Subject: [PATCH] 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 (github: unclejack) --- hack/make/test-integration-cli | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hack/make/test-integration-cli b/hack/make/test-integration-cli index 6e8b38892e..93330d7b09 100644 --- a/hack/make/test-integration-cli +++ b/hack/make/test-integration-cli @@ -29,8 +29,11 @@ bundle_test_integration_cli() { # pull the busybox image before running the tests sleep 2 - ( set -x; docker pull busybox ) + if ! docker inspect busybox &> /dev/null; then + ( set -x; docker pull busybox ) + fi + bundle_test_integration_cli DOCKERD_PID=$(set -x; cat $DEST/docker.pid)