mirror of https://github.com/docker/docs.git
Keep a cache of the unit-tests image. So I can code in conferences with crappy wifi.
This commit is contained in:
parent
c4cd224d90
commit
ca6cd5b557
|
@ -12,11 +12,9 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
// FIXME: this is no longer needed
|
|
||||||
const testLayerPath string = "/var/lib/docker/docker-ut.tar"
|
|
||||||
const unitTestImageName string = "docker-ut"
|
const unitTestImageName string = "docker-ut"
|
||||||
|
|
||||||
var unitTestStoreBase string
|
const unitTestStoreBase string = "/var/lib/docker/unit-tests"
|
||||||
|
|
||||||
func nuke(runtime *Runtime) error {
|
func nuke(runtime *Runtime) error {
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
|
@ -62,15 +60,8 @@ func init() {
|
||||||
panic("docker tests needs to be run as root")
|
panic("docker tests needs to be run as root")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a temp directory
|
|
||||||
root, err := ioutil.TempDir("", "docker-test")
|
|
||||||
if err != nil {
|
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
unitTestStoreBase = root
|
|
||||||
|
|
||||||
// Make it our Store root
|
// Make it our Store root
|
||||||
runtime, err := NewRuntimeFromDirectory(root)
|
runtime, err := NewRuntimeFromDirectory(unitTestStoreBase)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue