mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Unit tests fetch their base image with 'docker pull docker-ut'
This commit is contained in:
parent
504663a6ee
commit
d01b5894c4
1 changed files with 3 additions and 2 deletions
|
@ -9,8 +9,9 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// FIXME: this is no longer needed
|
||||||
const testLayerPath string = "/var/lib/docker/docker-ut.tar"
|
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 unitTestStoreBase string
|
||||||
var srv *Server
|
var srv *Server
|
||||||
|
@ -65,7 +66,7 @@ func init() {
|
||||||
runtime: runtime,
|
runtime: runtime,
|
||||||
}
|
}
|
||||||
// Retrieve the Image
|
// 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)
|
panic(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue