Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix message for consecutive failures #109

Merged
merged 1 commit into from
Mar 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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