Parcourir la source

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

Solomon Hykes il y a 11 ans
Parent
commit
ec6fe9f200
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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)