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
@@ -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)
|
py = _failing_py(tmp_path, "wait-rc", mode)
|
||||||
script = f'source "{WRAPPER}"; PY="{py}"; set +e; (cmd_wait --job j1 --timeout 5); echo "rc=$?"'
|
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,
|
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 "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:]
|
assert "ERROR: the wrapper could not decide 'wait-rc'" in res.stderr, res.stderr[-800:]
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user