diff options
author | Petri Latvala <petri.latvala@intel.com> | 2017-08-16 15:19:39 +0300 |
---|---|---|
committer | Martin Peres <martin.peres@linux.intel.com> | 2017-10-04 17:48:28 +0300 |
commit | 556efab54f5cf417c44cc9e5d99823783afe11a6 (patch) | |
tree | fc78f98039f6730123438caf3a71f492648e73ab | |
parent | 4a30c7004b158a48ac654a00fb9c76e16382b0e6 (diff) |
smartezbench: Create a new runner to issue reboot
-rw-r--r-- | python-modules/ezbench/smartezbench.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/python-modules/ezbench/smartezbench.py b/python-modules/ezbench/smartezbench.py index 4393ccf..40b156b 100644 --- a/python-modules/ezbench/smartezbench.py +++ b/python-modules/ezbench/smartezbench.py @@ -1134,8 +1134,11 @@ class SmartEzbench: self._task_list = deque() self._task_current = None self.__log(Criticality.II, "Rebooting...") - runner.reboot() - sys.exit(0) + # We already closed the runner above, so + # create a temporary one for the reboot + Runner(self.ezbench_dir).reboot() + # Just in case the reboot() returned + os._exit(0) elif (err_code.value != RunnerErrorCode.NO_ERROR and err_code.value < RunnerErrorCode.COMP_DEP_UNK_ERROR.value): # Error we cannot do anything about, probably a setup issue |