[Ezbench-dev] [PATCH 1/5] smartezbench: do not default to 3 runs if rounds is None

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


---
 ezbench                                | 4 ++--
 python-modules/ezbench/smartezbench.py | 4 +---
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/ezbench b/ezbench
index 3a6e225..a8a14ef 100755
--- a/ezbench
+++ b/ezbench
@@ -69,8 +69,8 @@ parser.add_argument("-t", dest='testsets', help="Test sets to run", action="appe
 parser.add_argument("-T", dest='list_testsets', help="List the available testsets", action="store_true")
 parser.add_argument("-c", dest='commits', help="Commits to run the tests on",
                     action="append")
-parser.add_argument("-r", dest='rounds', help="Number of execution rounds",
-                    action="store", type=int, nargs='?')
+parser.add_argument("-r", dest='rounds', help="Number of execution rounds to add",
+                    action="store", type=int, nargs='?', default=3)
 parser.add_argument("-p", dest='profile', help="Profile to be used by ezbench",
                     action="store")
 parser.add_argument("-s", dest='add_conf_script', help="Add a configuration script for EzBench's runner",
diff --git a/python-modules/ezbench/smartezbench.py b/python-modules/ezbench/smartezbench.py
index c5612ed..6436d0b 100644
--- a/python-modules/ezbench/smartezbench.py
+++ b/python-modules/ezbench/smartezbench.py
@@ -499,9 +499,7 @@ class SmartEzbench:
             commit = scm.full_version_name(commit)
 
         if rounds is None:
-            rounds = 3
-        else:
-            rounds = int(rounds)
+            return
 
         self.__task_tree_add_test__(self.state['commits'], commit, test, rounds)
 
-- 
2.11.1



More information about the Ezbench-dev mailing list