Exec starts executing a shell command, it tracks corresponding process and timeout.
(timeout time.Duration, desc, cmdName string, args ...string)
| 120 | |
| 121 | // Exec starts executing a shell command, it tracks corresponding process and timeout. |
| 122 | func ExecTimeout(timeout time.Duration, desc, cmdName string, args ...string) (string, string, error) { |
| 123 | return ExecDir(timeout, "", desc, cmdName, args...) |
| 124 | } |
| 125 | |
| 126 | // ExecTimeoutEnv is the same as ExecTimeout but allows appending additional |
| 127 | // environment variables to the child process. Pass nil for env to inherit the |
no test coverage detected