浏览代码

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

Solomon Hykes 11 年之前
父节点
当前提交
ec6fe9f200
共有 1 个文件被更改,包括 3 次插入0 次删除
  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)