From f4d6f9c0ede1099a91e3d916767ad9ff8cb25ce9 Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 28 Oct 2026 10:30:03 +0300 Subject: [PATCH] Tests: skip the reports-link case when the host cannot link os.symlink needs Developer Mode or an elevated token on Windows, so the test errored with WinError 1314 instead of exercising own_reports. Skip it there and keep it on hosts that can link. Co-Authored-By: Hermes Agent (Nous Research) --- tests/test_port_harness.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_port_harness.py b/tests/test_port_harness.py index 40e63ab7e..94d6eb3f7 100644 --- a/tests/test_port_harness.py +++ b/tests/test_port_harness.py @@ -65,7 +65,10 @@ class AssetTests(unittest.TestCase): (store / "minecraft").mkdir(parents=True) reports = root / ".local" / "datagen" / "out" / "reports" reports.parent.mkdir(parents=True) - reports.symlink_to(store) + try: + reports.symlink_to(store) + except OSError as e: + self.skipTest(f"this host cannot create symlinks: {e}") harness.own_reports(root) self.assertFalse(reports.exists() or reports.is_symlink()) self.assertTrue((store / "minecraft").is_dir())