Browse code

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 <cristian.staretu@gmail.com> (github: unclejack)

unclejack authored on 2014/04/12 09:49:49
Showing 1 changed files
... ...
@@ -29,8 +29,11 @@ bundle_test_integration_cli() {
29 29
 	
30 30
 	# pull the busybox image before running the tests
31 31
 	sleep 2
32
-	( set -x; docker pull busybox )
33 32
 	
33
+	if ! docker inspect busybox &> /dev/null; then
34
+		( set -x; docker pull busybox )
35
+	fi
36
+
34 37
 	bundle_test_integration_cli
35 38
 	
36 39
 	DOCKERD_PID=$(set -x; cat $DEST/docker.pid)