Przeglądaj źródła

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

Solomon Hykes 11 lat temu
rodzic
commit
ec6fe9f200
1 zmienionych plików z 3 dodań i 0 usunięć
  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)