(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func TestBashEchoesStdout(t *testing.T) { |
| 15 | out := Bash(context.Background(), "echo hammer && echo time >&2", 5*time.Second) |
| 16 | if !strings.Contains(out, "hammer") || !strings.Contains(out, "time") { |
| 17 | t.Fatalf("combined output missing: %q", out) |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | func TestBashNonZeroExitNotFatal(t *testing.T) { |
| 22 | out := Bash(context.Background(), "false", 5*time.Second) |