[Ezbench-dev] [PATCH 3/5] smartezbench: resolve the commit ID when possible on force_test_rounds

Martin Peres martin.peres at linux.intel.com
Thu Mar 2 11:54:20 UTC 2017


---
 python-modules/ezbench/smartezbench.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/python-modules/ezbench/smartezbench.py b/python-modules/ezbench/smartezbench.py
index ba15602..6304121 100644
--- a/python-modules/ezbench/smartezbench.py
+++ b/python-modules/ezbench/smartezbench.py
@@ -538,6 +538,10 @@ class SmartEzbench:
         self.__release_lock()
 
     def __force_test_rounds_unlocked__(self, commit, test, at_least):
+        scm = self.repo()
+        if scm is not None:
+            commit = scm.full_version_name(commit)
+
         if at_least < 1:
             return 0
         else:
-- 
2.11.1



More information about the Ezbench-dev mailing list