MCPcopy Create free account
hub / github.com/codehamr/codehamr / TestBashNonZeroExitNotFatal

Function TestBashNonZeroExitNotFatal

internal/tools/bash_test.go:21–26  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

BashFunction · 0.85

Tested by

no test coverage detected