|
|
@ -518,18 +518,26 @@ func (c *Client) Start() (err error) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
reporter.Start()
|
|
|
|
reporter.Start()
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if c.Debug {
|
|
|
|
|
|
|
|
fmt.Println("reading output")
|
|
|
|
|
|
|
|
}
|
|
|
|
testOutput, err := ioutil.ReadAll(c.outputStream)
|
|
|
|
testOutput, err := ioutil.ReadAll(c.outputStream)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
if c.Debug {
|
|
|
|
if c.Debug {
|
|
|
|
fmt.Println(err.Error())
|
|
|
|
fmt.Println(err.Error())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
if c.Debug {
|
|
|
|
|
|
|
|
fmt.Println("parsing output")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
c.report, err = Loads(string(testOutput))
|
|
|
|
c.report, err = Loads(string(testOutput))
|
|
|
|
if err != nil && c.Debug {
|
|
|
|
if err != nil && c.Debug {
|
|
|
|
fmt.Println(err.Error())
|
|
|
|
fmt.Println(err.Error())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if c.Debug {
|
|
|
|
|
|
|
|
fmt.Println("complete")
|
|
|
|
|
|
|
|
}
|
|
|
|
exitCode := <-exit
|
|
|
|
exitCode := <-exit
|
|
|
|
c.exitCode = &exitCode
|
|
|
|
c.exitCode = &exitCode
|
|
|
|
c.Running = false
|
|
|
|
c.Running = false
|
|
|
|