Browse Source

Hack: set NONUKE environment variable to run the tests without cleanup, to investigate temp directories

Solomon Hykes 11 years ago
parent
commit
ec6fe9f200
1 changed files with 3 additions and 0 deletions
  1. 3 0
      runtime_test.go

+ 3 - 0
runtime_test.go

@@ -36,6 +36,9 @@ var (
 )
 
 func nuke(runtime *Runtime) error {
+	if nonuke := os.Getenv("NONUKE"); nonuke != "" {
+		return nil
+	}
 	var wg sync.WaitGroup
 	for _, container := range runtime.List() {
 		wg.Add(1)