Browse Source

Do not imply only_own

Alois Mahdal 10 years ago
parent
commit
b773413f21
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      sznqalibs/hoover.py

+ 4
- 4
sznqalibs/hoover.py View File

138
     return tracker
138
     return tracker
139
 
139
 
140
 
140
 
141
-def get_data_and_stats(driverClass, argset, driver_settings):
141
+def get_data_and_stats(driverClass, argset, driver_settings, only_own=False):
142
     """Run test with given driver"""
142
     """Run test with given driver"""
143
     start = time.time()
143
     start = time.time()
144
     d = driverClass()
144
     d = driverClass()
145
-    d.setup(driver_settings, only_own=True)
145
+    d.setup(driver_settings, only_own=only_own)
146
     d.run(argset)
146
     d.run(argset)
147
     return (d.data, d.duration, time.time() - d.duration - start)
147
     return (d.data, d.duration, time.time() - d.duration - start)
148
 
148
 
149
 
149
 
150
-def get_data(driverClass, argset, driver_settings):
150
+def get_data(driverClass, argset, driver_settings, only_own=False):
151
     """Run test with given driver"""
151
     """Run test with given driver"""
152
     d = driverClass()
152
     d = driverClass()
153
-    d.setup(driver_settings, only_own=True)
153
+    d.setup(driver_settings, only_own=only_own)
154
     d.run(argset)
154
     d.run(argset)
155
     return d.data
155
     return d.data
156
 
156