From ca6cd5b557279facb4831e8380be4eb40ac38362 Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Wed, 17 Apr 2013 11:32:13 -0700 Subject: [PATCH] Keep a cache of the unit-tests image. So I can code in conferences with crappy wifi. --- runtime_test.go | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/runtime_test.go b/runtime_test.go index b990deaf38..20e7ee140d 100644 --- a/runtime_test.go +++ b/runtime_test.go @@ -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) }