|
@@ -138,19 +138,19 @@ def regression_test(argsrc, tests, driver_settings=None, cleanup_hack=None,
|
138
|
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
|
142
|
"""Run test with given driver"""
|
143
|
143
|
start = time.time()
|
144
|
144
|
d = driverClass()
|
145
|
|
- d.setup(driver_settings, only_own=True)
|
|
145
|
+ d.setup(driver_settings, only_own=only_own)
|
146
|
146
|
d.run(argset)
|
147
|
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
|
151
|
"""Run test with given driver"""
|
152
|
152
|
d = driverClass()
|
153
|
|
- d.setup(driver_settings, only_own=True)
|
|
153
|
+ d.setup(driver_settings, only_own=only_own)
|
154
|
154
|
d.run(argset)
|
155
|
155
|
return d.data
|
156
|
156
|
|