mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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
1 changed files with 2 additions and 11 deletions
|
@ -12,11 +12,9 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
// FIXME: this is no longer needed
|
||||
const testLayerPath string = "/var/lib/docker/docker-ut.tar"
|
||||
const unitTestImageName string = "docker-ut"
|
||||
|
||||
var unitTestStoreBase string
|
||||
const unitTestStoreBase string = "/var/lib/docker/unit-tests"
|
||||
|
||||
func nuke(runtime *Runtime) error {
|
||||
var wg sync.WaitGroup
|
||||
|
@ -62,15 +60,8 @@ func init() {
|
|||
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
|
||||
runtime, err := NewRuntimeFromDirectory(root)
|
||||
runtime, err := NewRuntimeFromDirectory(unitTestStoreBase)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue