Files
hermes-agent/tests/agent/test_skill_inline_shell_output.py
teknium1 b2ecd3518f test: purge low-value tests, lane py04 (294 removed)
Change-detectors, tautologies, source-reading tests, redundant duplicates,
mock-echo tests and dead/unrunnable tests. Per-test rationale in the lane
ledger (category + reason for every removal).
2026-09-23 03:15:26 -07:00

13 lines
534 B
Python

"""Inline-shell snippets never turn a silent failure into an empty (looks-fine) result."""
from agent.skill_preprocessing import run_inline_shell
def test_silent_nonzero_exit_returns_marker(tmp_path):
"""rc!=0 with no stdout and no stderr is the interpreter-never-ran signature (#116818)."""
out = run_inline_shell("exit 3", tmp_path, 5)
assert out.strip() and "3" in out
def test_nonzero_exit_with_stderr_keeps_the_diagnostic(tmp_path):
assert run_inline_shell('printf "diag" >&2; exit 3', tmp_path, 5) == "diag"