Unit tests fetch their base image with 'docker pull docker-ut'

Upstream-commit: d01b5894c47f7b389e89efe14a5acc96a68e3b7d
Component: engine
This commit is contained in:
Solomon Hykes
2013-03-25 17:18:56 -07:00
parent 729b03e616
commit 517ce9567b
+3 -2
View File
@@ -9,8 +9,9 @@ import (
"testing"
)
// FIXME: this is no longer needed
const testLayerPath string = "/var/lib/docker/docker-ut.tar"
const unitTestImageName string = "http://get.docker.io/images/busybox"
const unitTestImageName string = "docker-ut"
var unitTestStoreBase string
var srv *Server
@@ -65,7 +66,7 @@ func init() {
runtime: runtime,
}
// Retrieve the Image
if err := srv.CmdImport(os.Stdin, os.Stdout, unitTestImageName); err != nil {
if err := srv.CmdPull(os.Stdin, os.Stdout, unitTestImageName); err != nil {
panic(err)
}
}