| 35 | |
| 36 | |
| 37 | class PreparedFixture(base.Fixture): |
| 38 | def __init__(self, binary, root, template): |
| 39 | super().__init__(binary, root) |
| 40 | self.template = template |
| 41 | |
| 42 | def run(self, *args, **kwargs): |
| 43 | if args[0] == "init": |
| 44 | shutil.copytree(self.template, self.root, dirs_exist_ok=True) |
| 45 | return super().run("agent", "lifecycle", "begin", "--owner", "benchmark-orchestrator", |
| 46 | "--session", "benchmark-coordinator", "--executor", "claude-code", "--view", "dev") |
| 47 | return super().run(*args, **kwargs) |
| 48 | |
| 49 | |
| 50 | def worker(binary, root, endpoint, number, config, gate, stop_lock): |