diff --git a/scripts/run_cases.py b/scripts/run_cases.py index a527a3d..0e38c3d 100755 --- a/scripts/run_cases.py +++ b/scripts/run_cases.py @@ -80,11 +80,12 @@ def _run_case(case: dict, case_path: Path, binary: str, bundle: Path) -> None: env = os.environ.copy() env["MARQDO_STDLIB_DIR"] = str(bundle) for key, value in case.get("env", {}).items(): - env[key] = str(value) + env[key] = str(value).replace("$MARQDO_BIN", binary) version = subprocess.run( [binary, "--version"], capture_output=True, text=True, check=True ).stdout - command = [binary, "run", str(source), *case.get("args", []), "--output", "json"] + args = [str(arg).replace("$MARQDO_BIN", binary) for arg in case.get("args", [])] + command = [binary, "run", str(source), *args, "--output", "json"] result = subprocess.run( command, cwd=REPO,