Make harness verification portable

This commit is contained in:
2026-04-25 16:37:13 +08:00
parent 2c5e9af02a
commit 2dc2815620
2 changed files with 21 additions and 7 deletions

View File

@@ -36,6 +36,9 @@ from aituner.worker import (
from aituner.trace import TraceRequest
REPO_ROOT = Path(__file__).resolve().parents[1]
def _write_study_assets(
tmp_path: Path,
*,
@@ -842,7 +845,7 @@ class CoreFlowTests(unittest.TestCase):
"--overwrite",
],
check=True,
cwd="/home/gahow/phd/aituner",
cwd=str(REPO_ROOT),
)
windows_payload = json.loads((output_root / "windows.json").read_text(encoding="utf-8"))
@@ -907,7 +910,7 @@ class CoreFlowTests(unittest.TestCase):
"chat",
"--overwrite",
],
cwd="/home/gahow/phd/aituner",
cwd=str(REPO_ROOT),
capture_output=True,
text=True,
)