Skip to content

Commit b8bfa4b

Browse files
committed
Copy bench_runner.toml first
1 parent cdae0cb commit b8bfa4b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bench_runner/scripts/install.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,15 @@ def generate_generic(dst: Any) -> Any:
308308
def _main(check: bool) -> None:
309309
WORKFLOW_PATH.mkdir(parents=True, exist_ok=True)
310310

311+
# Copy the bench_runner.toml file first, because it might be needed by the
312+
# other steps
313+
314+
if not (ROOT_PATH / "bench_runner.toml").is_file():
315+
shutil.copyfile(
316+
TEMPLATE_PATH / "bench_runner.toml",
317+
ROOT_PATH / "bench_runner.toml",
318+
)
319+
311320
for src_path in TEMPLATE_PATH.glob("*"):
312321
if not src_path.is_file():
313322
continue

0 commit comments

Comments
 (0)