(t *testing.T)
| 19 | } |
| 20 | |
| 21 | func TestBashNonZeroExitNotFatal(t *testing.T) { |
| 22 | out := Bash(context.Background(), "false", 5*time.Second) |
| 23 | if !strings.Contains(out, "exit") { |
| 24 | t.Fatalf("expected exit marker, got %q", out) |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | // TestBashExactExitMarkerFormat pins the exact non-zero-exit shape: output, |
| 29 | // then a single "\n(exit: ...)" marker. The model parses these, and the other |