From 127007add4ce76f506933c29791b6e99d6661f3a Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期日, 19 一月 2020 10:23:58 +0800
Subject: [PATCH] before start child test runtime exist

---
 app/master/master.go |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/app/master/master.go b/app/master/master.go
index c4107e9..4fb75b2 100644
--- a/app/master/master.go
+++ b/app/master/master.go
@@ -5,6 +5,7 @@
 	"analysis/logo"
 	"analysis/util"
 	"context"
+	"strings"
 
 	"basic.com/libgowrapper/sdkstruct.git"
 )
@@ -58,6 +59,17 @@
 			continue
 		}
 
+		envs := strings.Split(cfg.Env, ":")
+		normal := true
+		for _, v := range envs {
+			if !util.IsFileExist(v) {
+				normal = false
+			}
+		}
+		if !normal {
+			logo.Infoln("Can't Find Runtime Path, Skip It: ", file)
+		}
+
 		logo.Infoln(file, " CONFIG: ", cfg)
 
 		args := []string{

--
Gitblit v1.8.0