rework debug/stdout flags

main
Ben Grewell 3 years ago
parent e184f7cc63
commit b5ccb612e4

@ -5,7 +5,6 @@
</component>
<component name="ChangeListManager">
<list default="true" id="fc2840de-29dc-4fca-8e0e-a283562f60ca" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/client.go" beforeDir="false" afterPath="$PROJECT_DIR$/client.go" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />

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

Loading…
Cancel
Save