Skip to content

Commit cb3315a

Browse files
committed
fix: restore CmdeployDriver.on_init_relay
1. driver_cmdeploy.py: CmdeployDriver.on_init_relay() was removed during the be9d325 refactor but was never moved to the base class as the commit message claimed. The method runs scripts/initenv.sh inside the builder to create the relay's venv. Without it, every subsequent step that calls `source .../venv/bin/activate` fails with "No such file or directory".
1 parent 46ea52b commit cb3315a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/cmlxc/driver_cmdeploy.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ def get_test_domain_or_ip(self):
9090
case _:
9191
return self.ct.domain
9292

93+
def on_init_relay(self, repo_path):
94+
"""Run scripts/initenv.sh on the builder to create the relay venv."""
95+
self.out.print(f" Running scripts/initenv.sh for {self.ct.shortname} ...")
96+
self.bld_ct.bash(f"cd {repo_path} && bash scripts/initenv.sh")
97+
9398
def init_builder(self, source):
9499
super().init_builder(source)
95100
if self.filtermail_bin:

0 commit comments

Comments
 (0)