summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Peres <martin.peres@linux.intel.com>2016-01-27 13:18:09 +0200
committerMartin Peres <martin.peres@linux.intel.com>2016-01-27 19:35:18 +0200
commit78defa3cb118345b7167c9353cfe6d3e45cf66b1 (patch)
treef848c0276809cdcdbd7249112f771c0d4814bd79
parentb8a6ca9183b110156ba651ed617f5b6e27366614 (diff)
smart_ezbench: make sure we schedule improvements
-rw-r--r--utils/ezbench.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/ezbench.py b/utils/ezbench.py
index f76ff59..fe8713e 100644
--- a/utils/ezbench.py
+++ b/utils/ezbench.py
@@ -716,11 +716,17 @@ class SmartEzbench:
# Only schedule the commit with the most important perf change to
# speed up the bisecting process
tasks_sorted = sorted(tasks, key=lambda t: t[0])
- if len(tasks_sorted) > 0:
+ while len(tasks_sorted) > 0:
commit = tasks_sorted[-1][1]
+ self.__log(Criticality.DD, "Add all the tasks using commit {}".format(commit))
+ added = 0
for t in tasks_sorted:
if t[1] == commit:
- self.force_benchmark_rounds(t[1], t[2], t[3])
+ added += self.force_benchmark_rounds(t[1], t[2], t[3])
+ if added > 0:
+ break
+ del tasks_sorted[-1]
+ self.__log(Criticality.DD, "No work scheduled using commit {}, try another one".format(commit))
# Report parsing
class Benchmark: