From 22ab8c35a9bee0ce9387602050ef595ade965ffd Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 11 Aug 2026 12:21:42 +0400 Subject: [PATCH] [ai] Repair three macOS-only harness suite tests Task: 2026/08/10/repair-macos-only-harness-suite-failures --- .../skills/process-inbox/scripts/workspace_test.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.agents/skills/process-inbox/scripts/workspace_test.py b/.agents/skills/process-inbox/scripts/workspace_test.py index 991f13100e..12290cdf4d 100644 --- a/.agents/skills/process-inbox/scripts/workspace_test.py +++ b/.agents/skills/process-inbox/scripts/workspace_test.py @@ -1241,7 +1241,9 @@ def run_test_run(exe, run_dir, **overrides): class MechanicsTest(unittest.TestCase): def test_build_lock_recovery_selects_only_exact_owned_processes(self): - build = Path("C:/Telegram/twin/out") + build = Path( + "C:/Telegram/twin/out" if os.name == "nt" else "/Telegram/twin/out" + ) exe = build / "Debug/Telegram.exe" records = [ { @@ -1249,7 +1251,7 @@ class MechanicsTest(unittest.TestCase): "parent_pid": 1, "name": "cmake.exe", "executable": "C:/Tools/cmake.exe", - "command_line": "cmake --build C:/Telegram/twin/out", + "command_line": f"cmake --build {build.as_posix()}", }, { "pid": 11, @@ -1300,7 +1302,7 @@ class MechanicsTest(unittest.TestCase): def test_build_lock_recovery_deletes_only_named_build_artifacts(self): with tempfile.TemporaryDirectory() as temporary: - root = Path(temporary) + root = Path(temporary).resolve() source, _, _, _ = source_repo_with_task(root) build = source / "out" debug = build / "Debug" @@ -2008,7 +2010,10 @@ class MechanicsTest(unittest.TestCase): with mock.patch.object( workspace, "task_action_config", return_value=(config, slot), ): - with self.assertRaisesRegex(workspace.WorkspaceError, "untracked"): + with self.assertRaisesRegex( + workspace.WorkspaceError, + r"outside the overlay inventory: stray\.txt", + ): run_command( workspace.command_overlay_save, task=TASK_ID,