def __init__(self, name, base_expectation_map, config=None): merged_config = suite_runner_config.default_run_configuration() if config: merged_config.update(config) self._lock = threading.Lock() self._name = name self._terminated = False self._deadline = merged_config.pop('deadline') self._bug = merged_config.pop('bug') self._metadata = merged_config.pop('metadata') self._test_order = merged_config.pop('test_order') default_expectation = merged_config.pop('flags') override_expectation_map = merged_config.pop('suite_test_expectations') assert not merged_config, ('Unexpected keyword arguments %s' % merged_config.keys()) expectation_map = suite_runner_util.merge_expectation_map( base_expectation_map, override_expectation_map, default_expectation) self._expectation_map = expectation_map # These will be set up later, in prepare_to_run(), and run_subprocess(). self._args = None self._logger = None self._subprocess = None self._user_data_dir = None
def __init__(self, name, base_expectation_map, config=None): merged_config = suite_runner_config.default_run_configuration() if config: merged_config.update(config) self._lock = threading.Lock() self._name = name self._terminated = False self._deadline = merged_config.pop('deadline') self._bug = merged_config.pop('bug') self._metadata = merged_config.pop('metadata') self._test_order = merged_config.pop('test_order') default_expectation = merged_config.pop('flags') override_expectation_map = merged_config.pop('suite_test_expectations') assert not merged_config, ('Unexpected keyword arguments %s' % merged_config.keys()) expectation_map = suite_runner_util.merge_expectation_map( base_expectation_map, override_expectation_map, default_expectation) self._expectation_map = expectation_map # These will be set up later, in prepare_to_run(), and run_subprocess(). self._args = None self._logger = None self._subprocess = None self._user_data_dir = None
def _stub_expectation_loader_get(*args): return suite_runner_config.default_run_configuration()