summaryrefslogtreecommitdiff
path: root/tests/opencode/test-plugin-loading.sh
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2026-08-13 00:32:39 +0000
committerJesse Vincent <jesse@fsck.com>2026-08-13 00:32:39 +0000
commit72ee5bbc5e489dc9c76fa64ba0fc31ab85185238 (patch)
tree032085044dfa7a21aa0794bf5c1f24d2fe90cbf3 /tests/opencode/test-plugin-loading.sh
parent777ceb5e12b6845f25e339ef1f4bef4e32b58d10 (diff)
tests: redirect stdin from /dev/null when spawning claude CLI
run_claude ran `timeout "$timeout" "${cmd[@]}"` with the suite's stdin inherited by the spawned CLI. When the suite is run from a terminal (or any open stdin), claude -p can block reading stdin and each test stalls for its full timeout instead of completing. Verified deterministically with a stub `claude` that reads stdin (cat): with an open stdin pipe the old helper blocks until timeout kills it (exit 124); with the redirect it exits immediately with output. Part of #2130; defect documented in PR #2071 by @ericyen97903-lab.
Diffstat (limited to 'tests/opencode/test-plugin-loading.sh')
0 files changed, 0 insertions, 0 deletions