diff options
author | Martin Peres <martin.peres@linux.intel.com> | 2017-07-17 20:23:02 +0300 |
---|---|---|
committer | Martin Peres <martin.peres@linux.intel.com> | 2017-10-04 17:48:28 +0300 |
commit | 4a30c7004b158a48ac654a00fb9c76e16382b0e6 (patch) | |
tree | e20d967008674056a8b017df069885b101fff524 | |
parent | c9c2e0d947448ca1802af80a02fa17ea454e998b (diff) |
smartezbench: make sure __change_state_to_run__() calls the hooks
-rw-r--r-- | python-modules/ezbench/smartezbench.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/python-modules/ezbench/smartezbench.py b/python-modules/ezbench/smartezbench.py index c6dc300..4393ccf 100644 --- a/python-modules/ezbench/smartezbench.py +++ b/python-modules/ezbench/smartezbench.py @@ -892,10 +892,9 @@ class SmartEzbench: self.__reload_state(keep_lock=True) try: - running_state=self.__running_mode_unlocked__() - if running_state == RunningMode.INITIAL or running_state == RunningMode.RUNNING: - self.__write_attribute_unlocked__('mode', RunningMode.RUN.value, allow_updates = True) - self.__log(Criticality.II, "Ezbench running mode set to RUN") + running_state=self.__running_mode_unlocked__(check_running=False) + if running_state == RunningMode.INITIAL: + self.__set_running_mode_unlocked__(RunningMode.RUN) ret = True elif running_state != RunningMode.RUN: self.__log(Criticality.II, |