(t *testing.T)
| 89 | } |
| 90 | |
| 91 | func TestCommandCall(t *testing.T) { |
| 92 | const expect = "echo to stdout" |
| 93 | ctx := log.Testing(t) |
| 94 | output, err := shell.Command("echo", "echo to stdout").Call(ctx) |
| 95 | assert.For(ctx, "err").ThatError(err).Succeeded() |
| 96 | assert.For(ctx, "output").ThatString(output).Equals(expect) |
| 97 | } |
| 98 | |
| 99 | func TestCommandEnvironment(t *testing.T) { |
| 100 | const expect = "message from environment\n" |