diff options
author | Martin Peres <martin.peres@linux.intel.com> | 2017-04-11 16:29:22 +0300 |
---|---|---|
committer | Martin Peres <martin.peres@linux.intel.com> | 2017-04-11 16:31:01 +0300 |
commit | 58bb55e18561be804f25513af16cf2656e17947c (patch) | |
tree | 4c8102c4da7e1be7859fa0c6f23b8a6dff2af029 /python-modules | |
parent | 00c13d1b5ce801583c15e2c730fc6dc6536b081c (diff) |
smartezbench: fix the condition that sets the running state to DONE
Diffstat (limited to 'python-modules')
-rw-r--r-- | python-modules/ezbench/smartezbench.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/python-modules/ezbench/smartezbench.py b/python-modules/ezbench/smartezbench.py index a3d6d67..482ef99 100644 --- a/python-modules/ezbench/smartezbench.py +++ b/python-modules/ezbench/smartezbench.py @@ -1092,9 +1092,8 @@ class SmartEzbench: # If we are using the throttle mode, only schedule the commit with the # biggest score to speed up bisecting of the most important issues - scheduled_commits = added = 0 + scheduled_commits = total_added = 0 self.__reload_state(keep_lock=True) - total_added = 0 while len(tasks_sorted) > 0 and scheduled_commits < commit_schedule_max: commit = tasks_sorted[-1][1] self.__log(Criticality.DD, "Add all the tasks using commit {}".format(commit)) @@ -1117,8 +1116,7 @@ class SmartEzbench: self.__log(Criticality.II, "Done enhancing the report") - - if (added == 0 and + if (total_added == 0 and self.__running_mode_unlocked__(check_running=False) == RunningMode.RUN): self.set_running_mode(RunningMode.DONE) |