(nodeName string, cmd []string)
| 386 | } |
| 387 | |
| 388 | func (h *Harness) ExecBackground(nodeName string, cmd []string) *BackgroundExec { |
| 389 | bg := &BackgroundExec{ |
| 390 | done: make(chan struct{}), |
| 391 | } |
| 392 | go func() { |
| 393 | defer close(bg.done) |
| 394 | bg.Stdout, bg.Stderr, bg.Err = h.Exec(nodeName, cmd) |
| 395 | }() |
| 396 | return bg |
| 397 | } |
| 398 | |
| 399 | // GetIP returns the IP address of the node in the test network |
| 400 | func (h *Harness) GetIP(nodeName string) (string, error) { |