@@ -22,32 +22,33 @@ def __init__(self, config, progress, restart):
2222 self .progress = progress
2323 self .basedir = None
2424 self .random = config .get ('randomization' , False )
25+
2526 Tests .is_valid_option (self .random , valid_options = [True , False ])
2627 self .clear_cache = config .get ('clear_cache' , False )
2728 Tests .is_valid_option (self .clear_cache , valid_options = [True , False ])
29+
2830 if 'devices' not in config :
2931 raise ConfigError ('"device" is required in the configuration' )
3032 adb_path = config .get ('adb_path' , 'adb' )
33+
3134 self .devices = Devices (config ['devices' ], adb_path = adb_path , devices_spec = config .get ('devices_spec' ))
3235 self .repetitions = Tests .is_integer (config .get ('repetitions' , 1 ))
3336 self .paths = config .get ('paths' , [])
3437 self .profilers = Profilers (config .get ('profilers' , {}))
35- monkeyrunner_path = config .get ('monkeyrunner_path' , 'monkeyrunner' )
36- monkey_playback_path = config .get ('monkey_playback_path' , 'monkey_playback.py' )
37- self .scripts = Scripts (config .get ('scripts' , {}), monkeyrunner_path = monkeyrunner_path , monkey_playback_path = monkey_playback_path )
38+ self .scripts = Scripts (config .get ('scripts' , {}))
3839 self .reset_adb_among_runs = config .get ('reset_adb_among_runs' , False )
3940 Tests .is_valid_option (self .reset_adb_among_runs , valid_options = [True , False ])
4041 self .time_between_run = Tests .is_integer (config .get ('time_between_run' , 0 ))
4142 Tests .check_dependencies (self .devices , self .profilers .dependencies ())
4243 self .output_root = paths .OUTPUT_DIR
4344 self .result_file_structure = None
44-
45+
4546 self .usb_handler_config = config .get ("usb_handler" , None )
4647 self .usb_handler = USBHandler (self .usb_handler_config )
4748
4849 self .run_stopping_condition_config = config .get ("run_stopping_condition" , None )
4950 self .queue = mp .Queue ()
50-
51+
5152 if restart :
5253 for device in self .devices :
5354 self .prepare_device (device , restart = True )
0 commit comments