Browse Source

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

Solomon Hykes 11 năm trước cách đây
mục cha
commit
ec6fe9f200
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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)