diff --git a/reframe/frontend/executors/policies.py b/reframe/frontend/executors/policies.py index 902ed1a1c2..56d0661e19 100644 --- a/reframe/frontend/executors/policies.py +++ b/reframe/frontend/executors/policies.py @@ -409,7 +409,7 @@ def runcase(self, case): else: self.printer.status('HOLD', task.check.info(), just='right') except TaskExit: - if not task.failed or not task.skipped: + if not task.failed and not task.skipped: with contextlib.suppress(TaskExit): self._reschedule(task)