rework debug/stdout flags

main
Ben Grewell 3 years ago
parent e184f7cc63
commit b5ccb612e4

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

@ -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

Loading…
Cancel
Save