(t *testing.T)
| 1222 | } |
| 1223 | |
| 1224 | func TestExecErrorsWhenTheSpecifiedCommandDoesNotExist(t *testing.T) { |
| 1225 | t.Parallel() |
| 1226 | p := script.Exec("doesntexist") |
| 1227 | p.Wait() |
| 1228 | if p.Error() == nil { |
| 1229 | t.Error("want error running non-existent command") |
| 1230 | } |
| 1231 | } |
| 1232 | |
| 1233 | func TestExecRunsGoWithNoArgsAndGetsUsageMessagePlusErrorExitStatus2(t *testing.T) { |
| 1234 | t.Parallel() |