Skip to content

Every agent's model. One place. Codex on DeepSeek, Claude Code on Kimi, from the menu bar.

proc: the /bin/sh tests of CombinedOutputOwn skip on Windows

yetone7fe98c2afd29
diff --git a/internal/proc/disclaim_test.go b/internal/proc/disclaim_test.go
index ff55c7008..93f2667f7 100644
--- a/internal/proc/disclaim_test.go
+++ b/internal/proc/disclaim_test.go
@@ -56,7 +56,16 @@ func TestCombinedOutputOwnAnswersForItself(t *testing.T) {
}
}
+// noShell skips a test that drives /bin/sh where there is none (Windows).
+func noShell(t *testing.T) {
+ t.Helper()
+ if runtime.GOOS == "windows" {
+ t.Skip("no /bin/sh on Windows")
+ }
+}
+
func TestCombinedOutputOwnRuns(t *testing.T) {
+ noShell(t)
dir := t.TempDir()
cmd := Command("/bin/sh", "-c", "pwd; echo \"$MAGPIE_T\"; echo err >&2; if [ -p /dev/stdin ]; then echo pipe; else echo other; fi; exit 3")
cmd.Env = append(os.Environ(), "MAGPIE_T=v")
@@ -80,6 +89,7 @@ func TestCombinedOutputOwnRuns(t *testing.T) {
// The context ending ends the command, and the run with it.
func TestCombinedOutputOwnContext(t *testing.T) {
+ noShell(t)
ctx, cancel := context.WithCancel(context.Background())
done := make(chan error, 1)
go func() {