(cmds []*exec.Cmd)
| 395 | } |
| 396 | |
| 397 | func killProcessGroups(cmds []*exec.Cmd) { |
| 398 | for _, item := range cmds { |
| 399 | if item.Process != nil { |
| 400 | _ = syscall.Kill(-item.Process.Pid, syscall.SIGKILL) |
| 401 | } |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | func WithOutputFile(outputFile string) Option { |
| 406 | return func(s *CommandHelper) { |
no outgoing calls
no test coverage detected