[FIX] runbot: fix python step wakeup

This commit is contained in:
Xavier-Do 2023-03-30 13:05:35 +02:00
parent 8c2e7a5781
commit e88f679c87

View File

@ -321,8 +321,9 @@ class ConfigStep(models.Model):
'PatchSet': PatchSet,
}
def _run_python(self, build, log_path):
def _run_python(self, build, log_path, force=False):
eval_ctx = self.make_python_ctx(build)
eval_ctx['force'] = force
try:
safe_eval(self.python_code.strip(), eval_ctx, mode="exec", nocopy=True)
run = eval_ctx.get('run')