Skip to content

Commit

Permalink
Merge PR #109: Fix message for consecutive failures
Browse files Browse the repository at this point in the history
  • Loading branch information
smarr authored Mar 11, 2019
2 parents e9789c3 + 3a19736 commit bd70166
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rebench/model/termination_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ def should_terminate(self, number_of_data_points):
if self._fail_immediately:
self._ui.warning("{ind}Marked to fail immediately.\n", self._run_id)
if self.fails_consecutively():
self._ui.warning(
"{ind}Three executions have failed in a row, benchmark is aborted.\n", self._run_id)
msg = "{ind}Execution has failed, benchmark is aborted.\n"
if self._consecutive_erroneous_executions > 0:
msg += "{ind}{ind}The benchmark failed "
msg += str(self._consecutive_erroneous_executions) + " times in a row."
self._ui.warning(msg, self._run_id)
return True
elif self.has_too_many_failures(number_of_data_points):
self._ui.warning(
Expand Down

0 comments on commit bd70166

Please sign in to comment.