Browse Source

Do not require driver_settings; use empty dict by default

Alois Mahdal 10 years ago
parent
commit
4220ccb9df
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      sznqalibs/hoover.py

+ 2
- 1
sznqalibs/hoover.py View File

17
 # ## The Motor                                                             ## #
17
 # ## The Motor                                                             ## #
18
 # ########################################################################### #
18
 # ########################################################################### #
19
 
19
 
20
-def regression_test(argsrc, tests, driver_settings, cleanup_hack=None,
20
+def regression_test(argsrc, tests, driver_settings=None, cleanup_hack=None,
21
                     apply_hacks=None, on_next=None):
21
                     apply_hacks=None, on_next=None):
22
     """Perform regression test with argsets from `argsrc`.
22
     """Perform regression test with argsets from `argsrc`.
23
 
23
 
55
 
55
 
56
     on_next = on_next if on_next else lambda a, b: None
56
     on_next = on_next if on_next else lambda a, b: None
57
     apply_hacks = apply_hacks if apply_hacks else []
57
     apply_hacks = apply_hacks if apply_hacks else []
58
+    driver_settings = driver_settings if driver_settings else {}
58
 
59
 
59
     tracker = Tracker()
60
     tracker = Tracker()
60
     last_argset = None
61
     last_argset = None