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