Home | History | Annotate | Download | only in tools

Lines Matching refs:config

94   """Attempts to load the specified config file as a module
95 and grab the global config dict.
101 The config dict which should be formatted as follows:
110 return local_vars['config']
126 def _CreateBisectOptionsFromConfig(config):
128 opts_dict['command'] = config['command']
129 opts_dict['metric'] = config['metric']
131 if config['repeat_count']:
132 opts_dict['repeat_test_count'] = int(config['repeat_count'])
134 if config['truncate_percent']:
135 opts_dict['truncate_percent'] = int(config['truncate_percent'])
137 if config['max_time_minutes']:
138 opts_dict['max_time_minutes'] = int(config['max_time_minutes'])
140 if config.has_key('use_goma'):
141 opts_dict['use_goma'] = config['use_goma']
146 if '--browser=cros' in config['command']:
155 elif 'android' in config['command']:
156 if 'android-chrome' in config['command']:
164 def _RunPerformanceTest(config, path_to_file):
170 opts = _CreateBisectOptionsFromConfig(config)
249 def _SetupAndRunPerformanceTest(config, path_to_file, path_to_goma):
254 config: The config read from run-perf-test.cfg.
263 config['use_goma'] = bool(path_to_goma)
264 _RunPerformanceTest(config, path_to_file)
272 def _RunBisectionScript(config, working_directory, path_to_file, path_to_goma,
278 config: A dict containing the parameters to pass to the script.
290 bisect_utils.OutputAnnotationStepStart('Config')
292 for k, v in config.iteritems():
298 '-c', config['command'],
299 '-g', config['good_revision'],
300 '-b', config['bad_revision'],
301 '-m', config['metric'],
305 if config['repeat_count']:
306 cmd.extend(['-r', config['repeat_count']])
308 if config['truncate_percent']:
309 cmd.extend(['-t', config['truncate_percent']])
311 if config['max_time_minutes']:
312 cmd.extend(['--max_time_minutes', config['max_time_minutes']])
316 if '--browser=cros' in config['command']:
328 if 'android' in config['command']:
329 if 'android-chrome' in config['command']:
387 config = _LoadConfigFile(path_to_bisect_cfg)
389 # Check if the config is empty
390 config_has_values = [v for v in config.values() if v]
392 if config and config_has_values:
399 return _RunBisectionScript(config, opts.working_directory,
410 config = _LoadConfigFile(path_to_perf_cfg)
411 config_has_values = [v for v in config.values() if v]
413 if config and config_has_values:
414 return _SetupAndRunPerformanceTest(config, path_to_current_directory,
417 print 'Error: Could not load config file. Double check your changes to '\