add debug flag to client

main
Ben Grewell 3 years ago
parent 53175db755
commit 08168a8e51

@ -5,7 +5,8 @@
</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$/controller.go" beforeDir="false" afterPath="$PROJECT_DIR$/controller.go" afterDir="false" /> <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> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />

@ -66,6 +66,7 @@ type Client struct {
Running bool `json:"running" yaml:"running" xml:"running"` Running bool `json:"running" yaml:"running" xml:"running"`
Done chan bool `json:"-" yaml:"-" xml:"-"` Done chan bool `json:"-" yaml:"-" xml:"-"`
Options *ClientOptions `json:"options" yaml:"options" xml:"options"` Options *ClientOptions `json:"options" yaml:"options" xml:"options"`
Debug bool `json:"-" yaml:"-" xml:"-"`
exitCode *int exitCode *int
report *TestReport report *TestReport
outputStream io.ReadCloser outputStream io.ReadCloser
@ -497,14 +498,16 @@ func (c *Client) Start() (err error) {
return err return err
} }
c.Running = true c.Running = true
//go func() { if c.Debug {
// ds := DebugScanner{Silent: false} go func() {
// ds.Scan(c.outputStream) ds := DebugScanner{Silent: false}
//}() ds.Scan(c.outputStream)
//go func() { }()
// ds := DebugScanner{Silent: false} go func() {
// ds.Scan(c.errorStream) ds := DebugScanner{Silent: false}
//}() ds.Scan(c.errorStream)
}()
}
go func() { go func() {
var reporter *Reporter var reporter *Reporter
if c.live { if c.live {

Loading…
Cancel
Save