diff --git a/tests/test_issue17_workspace_root_isolation.py b/tests/test_issue17_workspace_root_isolation.py index fa2913f..f710855 100644 --- a/tests/test_issue17_workspace_root_isolation.py +++ b/tests/test_issue17_workspace_root_isolation.py @@ -40,6 +40,7 @@ NODES = [ "tests/test_issue17_item4_decisions.py::test_c_cmd_wait", "tests/test_o2_race_free_lock.py::test_o2_12_run_loop_exits_on_lock_failure", "tests/test_o1_rebuttal.py::test_v3_rebut_option_parsing_and_budget", + "tests/test_issue50_dispatch.py::test_u1e_a_dry_run_record_is_not_an_open_job", ] diff --git a/tests/test_issue50_dispatch.py b/tests/test_issue50_dispatch.py index 12e9d03..ae35548 100644 --- a/tests/test_issue50_dispatch.py +++ b/tests/test_issue50_dispatch.py @@ -164,7 +164,10 @@ def test_u1e_a_dry_run_record_is_not_an_open_job(tmp_path): dispatches; it stays pending (Issue #34 shows it as an open job), but the admission must not wait for it.""" reg = tmp_path / "jobs" - env = dict(os.environ, HOME=str(tmp_path), MAM_ENV_FILE=str(tmp_path / ".mam.env.absent")) + # WORKSPACE_ROOT: the wrapper sources lib.sh, which otherwise writes the + # checkout's own .mam/shim/herdr (Issue #17 follow-up; W1 runs this node) + env = dict(os.environ, HOME=str(tmp_path), MAM_ENV_FILE=str(tmp_path / ".mam.env.absent"), + WORKSPACE_ROOT=str(tmp_path)) res = subprocess.run(["bash", str(WRAPPER), "submit", "--agent", "human", "--agent-session", "herdr:s", "--dry-run", "--registry-dir", str(reg), "--prompt", "preview only"], capture_output=True, text=True, env=env, cwd=str(tmp_path), timeout=120)