Explorar o código

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

Solomon Hykes %!s(int64=11) %!d(string=hai) anos
pai
achega
ec6fe9f200
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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)