Home
last modified time | relevance | path

Searched refs:kwargs (Results 1 – 25 of 79) sorted by relevance

1234

/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dtako_trace_logger.py22 def __init__(self, *args, **kwargs): argument
23 super().__init__(*args, **kwargs)
32 return lambda *args, **kwargs: self._logger.log(level, *args, **kwargs)
34 def step(self, msg, *args, **kwargs): argument
36 self._log_with(self._logger_level('STEP'), 1, msg, *args, **kwargs)
38 def device(self, msg, *args, **kwargs): argument
40 self._log_with(self._logger_level('DEVICE'), 1, msg, *args, **kwargs)
42 def suite(self, msg, *args, **kwargs): argument
44 self._log_with(self._logger_level('SUITE'), 1, msg, *args, **kwargs)
46 def case(self, msg, *args, **kwargs): argument
[all …]
/tools/test/connectivity/acts/framework/acts/
Dtracelogger.py41 def _log_with(self, logging_lambda, trace_level, msg, *args, **kwargs): argument
43 logging_lambda('%s %s' % (msg, trace_info), *args, **kwargs)
45 def exception(self, msg, *args, **kwargs): argument
46 self._log_with(self._logger.exception, 5, msg, *args, **kwargs)
48 def debug(self, msg, *args, **kwargs): argument
49 self._log_with(self._logger.debug, 3, msg, *args, **kwargs)
51 def error(self, msg, *args, **kwargs): argument
52 self._log_with(self._logger.error, 3, msg, *args, **kwargs)
54 def warn(self, msg, *args, **kwargs): argument
55 self._log_with(self._logger.warn, 1, msg, *args, **kwargs)
[all …]
Dtest_decorators.py86 def __call__(self, *args, **kwargs): argument
92 result = self.func(*args, **kwargs)
109 gathered_extras = self._gather_local_info(None, *args, **kwargs)
121 def gather(self, *args, **kwargs): argument
130 extras = self.func.gather(*args, **kwargs)
134 self._gather_local_info(extras, *args, **kwargs)
138 def _gather_local_info(self, gather_into, *args, **kwargs): argument
150 if not self.predicate or self.predicate(args, kwargs):
181 def __call__(self, *args, **kwargs): argument
186 return self.target(self.instance, *args, **kwargs)
[all …]
Ddict_object.py28 def __init__(self, *args, **kwargs): argument
38 super(DictObject, self).update(**kwargs)
Derror.py9 def __init__(self, *args, **kwargs): argument
13 self.extra = kwargs
/tools/test/connectivity/acts/framework/acts/libs/test_binding/
Dbinding.py59 def __call__(self, *args, **kwargs): argument
65 full_args, kwargs = self.arg_modifier(self.inner, *full_args,
66 **kwargs)
69 self.before(self.inner, *full_args, **kwargs)
73 result = self.inner(*full_args, **kwargs)
76 self.after(self.inner, result, *full_args, **kwargs)
88 **kwargs)
/tools/tradefederation/core/atest/tools/
Datest_tools.py103 **kwargs): argument
113 prunenames = kwargs.pop('prunenames', ' '.join(PRUNENAMES))
114 prunepaths = kwargs.pop('prunepaths', os.path.join(search_root, 'out'))
115 if kwargs:
116 raise TypeError('Unexpected **kwargs: %r' % kwargs)
296 def index_targets(output_cache=constants.LOCATE_CACHE, **kwargs): argument
313 class_index = kwargs.pop('class_index', constants.CLASS_INDEX)
314 qclass_index = kwargs.pop('qclass_index', constants.QCLASS_INDEX)
315 package_index = kwargs.pop('package_index', constants.PACKAGE_INDEX)
316 cc_class_index = kwargs.pop('cc_class_index', constants.CC_CLASS_INDEX)
[all …]
/tools/asuite/atest/tools/
Datest_tools.py98 **kwargs): argument
108 prunenames = kwargs.pop('prunenames', ' '.join(PRUNENAMES))
109 prunepaths = kwargs.pop('prunepaths', os.path.join(search_root, 'out'))
110 if kwargs:
111 raise TypeError('Unexpected **kwargs: %r' % kwargs)
300 def index_targets(output_cache=constants.LOCATE_CACHE, **kwargs): argument
318 class_index = kwargs.pop('class_index', constants.CLASS_INDEX)
319 qclass_index = kwargs.pop('qclass_index', constants.QCLASS_INDEX)
320 package_index = kwargs.pop('package_index', constants.PACKAGE_INDEX)
321 cc_class_index = kwargs.pop('cc_class_index', constants.CC_CLASS_INDEX)
[all …]
/tools/repohooks/rh/
Dutils.py191 kwargs = {}
194 kwargs['timeout'] = 60
195 proc.wait_lock_breaker(**kwargs)
238 def _lock_breaker(self, func, *args, **kwargs): argument
248 return func(*args, **kwargs)
253 return func(*args, **kwargs)
255 def poll_lock_breaker(self, *args, **kwargs): argument
257 return self._lock_breaker(self.poll, *args, **kwargs)
259 def wait_lock_breaker(self, *args, **kwargs): argument
261 return self._lock_breaker(self.wait, *args, **kwargs)
[all …]
Dhooks.py202 def _run(cmd, **kwargs): argument
204 kwargs.setdefault('combine_stdout_stderr', True)
205 kwargs.setdefault('capture_output', True)
206 kwargs.setdefault('check', False)
209 kwargs.setdefault('input', '')
210 return rh.utils.run(cmd, **kwargs)
269 def _fixup_func_caller(cmd, **kwargs): argument
277 result = _run(cmd, **kwargs)
284 def _check_cmd(hook_name, project, commit, cmd, fixup_func=None, **kwargs): argument
287 _run(cmd, **kwargs),
[all …]
/tools/test/connectivity/acts/framework/acts/event/
Dsubscription_handle.py58 def _wrapped_call(*args, **kwargs): argument
60 return func(*args, **kwargs)
62 return func(self._owner, *args, **kwargs)
65 def __call__(self, *args, **kwargs): argument
66 return self._func(*args, **kwargs)
Ddecorators.py65 def init_replacement(self, *args, **kwargs): argument
66 old_init(self, *args, **kwargs)
/tools/test/connectivity/acts/framework/tests/libs/test_bindings/
Dbinding_test.py39 def inner(*args, **kwargs): argument
41 self.inner_kwargs = kwargs
55 def inner(*args, **kwargs): argument
67 def inner(*args, **kwargs): argument
105 def arg_modifier(_, *args, **kwargs): argument
107 new_kwargs = dict(kwargs, kw='value')
111 def inner(*args, **kwargs): argument
113 self.inner_kwargs = kwargs
/tools/test/connectivity/acts/framework/tests/metrics/
Dlogger_test.py43 kwargs = {'mock' : Mock()}
44 logger = MetricLogger.for_test_case(*args, **kwargs)
46 proxy_cls.assert_called_once_with(MetricLogger, args, kwargs)
51 kwargs = {'mock': Mock()}
52 logger = MetricLogger.for_test_class(*args, **kwargs)
54 proxy_cls.assert_called_once_with(MetricLogger, args, kwargs)
61 kwargs = {'mock': Mock()}
62 logger = TestLogger.for_test_case(*args, **kwargs)
64 proxy_cls.assert_called_once_with(TestLogger, args, kwargs)
71 kwargs = {'mock': Mock()}
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dadb.py185 def _exec_adb_cmd(self, name, arg_str, **kwargs): argument
187 **kwargs)
189 def _exec_cmd_nb(self, cmd, **kwargs): argument
196 return job.run_async(cmd, **kwargs)
198 def _exec_adb_cmd_nb(self, name, arg_str, **kwargs): argument
200 **kwargs)
279 def adb_call(*args, **kwargs): argument
282 return self._exec_adb_cmd(clean_name, arg_str, **kwargs)
Dfastboot.py79 def args(self, *args, **kwargs): argument
80 return job.run(' '.join((self.fastboot_str, ) + args), **kwargs).stdout
83 def fastboot_call(*args, **kwargs): argument
86 return self._exec_fastboot_cmd(clean_name, arg_str, **kwargs)
/tools/test/connectivity/acts/framework/acts/libs/
Dversion_selector.py217 def __call__(self, *args, **kwargs): argument
233 level = self.get_version(self.instance, *args, **kwargs)
235 level = self.get_version(*args, **kwargs)
238 for key, value in kwargs.items():
267 return func(*args, **kwargs)
269 return func(self.instance, *args, **kwargs)
/tools/acloud/internal/lib/
Ddriver_test_lib.py33 def Patch(self, *args, **kwargs): argument
46 patcher = mock.patch.object(*args, **kwargs)
/tools/asuite/aidegen/lib/
Dcommon_util.py78 def wrapper(*args, **kwargs): argument
83 return func(*args, **kwargs)
373 def wrapper(*args, **kwargs): argument
377 return func(*args, **kwargs)
514 def wrapper(*args, **kwargs): argument
517 return func(*args, **kwargs)
548 def decorated(*args, **kwargs): argument
558 if arg_name not in kwargs:
560 arg_val = kwargs.get(arg_name)
567 return func(*args, **kwargs)
/tools/asuite/atest/
Dasuite_metrics.py37 def log_event(metrics_url, dummy_key_fallback=True, **kwargs): argument
57 if kwargs:
58 data.update(kwargs)
/tools/tradefederation/core/atest/
Dasuite_metrics.py43 def log_event(metrics_url, dummy_key_fallback=True, **kwargs): argument
63 if kwargs:
64 data.update(kwargs)
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Drpc_client.py118 def rpc(self, name, *args, **kwargs): argument
119 future = self._executor.submit(name, *args, **kwargs)
125 def rpc_call(*args, **kwargs): argument
127 self._rpc_client.__getattr__(name), *args, **kwargs)
352 def rpc_call(*args, **kwargs): argument
353 return self.rpc(name, *args, **kwargs)
/tools/asuite/atest/metrics/
Dmetrics_base.py101 def __new__(cls, **kwargs): argument
121 if field in kwargs:
122 fields_and_values[field] = kwargs.pop(field)
/tools/tradefederation/core/atest/metrics/
Dmetrics_base.py101 def __new__(cls, **kwargs): argument
121 if field in kwargs:
122 fields_and_values[field] = kwargs.pop(field)
/tools/asuite/atest/test_runners/
Dtest_runner_base.py55 def __init__(self, results_dir, **kwargs): argument
64 if kwargs:
65 logging.debug('ignoring the following args: %s', kwargs)

1234