(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestCommandBadDir(t *testing.T) { |
| 51 | ctx := log.Testing(t) |
| 52 | err := shell.Command("echo", "test").In("not#a#dir").Run(ctx) |
| 53 | assert.For(ctx, "err").ThatError(err).HasMessage(`Failed to start process |
| 54 | Cause: chdir not#a#dir: no such file or directory`) |
| 55 | } |
| 56 | |
| 57 | func TestCommandCancel(t *testing.T) { |
| 58 | ctx := log.Testing(t) |