fix(issue-17): follow-ups - a failed decision ends the wrapper with 1; resume closes herdr 0.9.3's placeholder (v4.8.7) #52

Merged
Godopu merged 9 commits from fix/issue17-followups into main 2026-10-08 02:32:57 +00:00
Showing only changes of commit 8241bd53b1 - Show all commits
+1 -1
View File
@@ -689,7 +689,7 @@ def test_f_a_failed_wait_rc_ends_wait_with_1(tmp_path, mode):
py = _failing_py(tmp_path, "wait-rc", mode)
script = f'source "{WRAPPER}"; PY="{py}"; set +e; (cmd_wait --job j1 --timeout 5); echo "rc=$?"'
res = subprocess.run(["bash", "-c", script], capture_output=True, text=True, cwd=str(tmp_path), timeout=60,
env=_env(tmp_path, SUB_STANDIN=1, SUB_RC=4, DELEGATE_JOB_PYTHON=py))
env=_env(tmp_path, SUB_STANDIN=1, SUB_RC=4, DELEGATE_JOB_PYTHON=py, WORKSPACE_ROOT=tmp_path))
assert "rc=1" in res.stdout, (res.stdout, res.stderr[-800:])
assert "ERROR: the wrapper could not decide 'wait-rc'" in res.stderr, res.stderr[-800:]