diff options
author | Martin Peres <martin.peres@linux.intel.com> | 2017-05-02 20:30:06 +0300 |
---|---|---|
committer | Martin Peres <martin.peres@linux.intel.com> | 2017-10-04 17:48:28 +0300 |
commit | a1e82ee5fb9cceedaa1476d7788260ec2b42ed5c (patch) | |
tree | a18cd7a6b32930628330eeceb50cb853f9b31b83 | |
parent | 3ec08602f8ed82a1cb2ac61dc086908f51d262e2 (diff) |
smartezbench: call a hook before rebooting
-rw-r--r-- | python-modules/ezbench/smartezbench.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/python-modules/ezbench/smartezbench.py b/python-modules/ezbench/smartezbench.py index 87c2269..503997b 100644 --- a/python-modules/ezbench/smartezbench.py +++ b/python-modules/ezbench/smartezbench.py @@ -994,8 +994,7 @@ class SmartEzbench: # The result is un-resumable, schedule a full run at the end self._task_list.append(TaskEntry(e.commit, e.test, 1)) elif err_code == RunnerErrorCode.REBOOT_NEEDED: - # TODO: have some sort of hooks here to warn the rest of the world - # that we are about to reboot + self.__call_hook__('reboot_needed', { "task": self._task_current }) self._task_list = deque() self._task_current = None self.__log(Criticality.II, "Rebooting...") |