RoundRobinCheck test

This commit is contained in:
cuu
2018-12-25 03:09:10 +00:00
parent 9751dac79e
commit 325d57ac23
2 changed files with 10 additions and 1 deletions

View File

@@ -243,7 +243,11 @@ func System(cmd string) string {
ret := ""
out,err := exec.Command("bash","-c",cmd).Output()
if err != nil {
fmt.Println(err)
if _, ok := err.(*exec.ExitError); ok {
//exit code !=0 ,but it can be ignored
}else{
fmt.Println(err)
}
}else {
ret = string(out)
}