Home
last modified time | relevance | path

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

1234

/tools/test/connectivity/acts/framework/acts/
Dtracelogger.py44 def _log_with(self, logging_lambda, trace_level, msg, *args, **kwargs): argument
46 logging_lambda('%s %s' % (msg, trace_info), *args, **kwargs)
48 def exception(self, msg, *args, **kwargs): argument
49 self._log_with(self._logger.exception, 5, msg, *args, **kwargs)
51 def debug(self, msg, *args, **kwargs): argument
52 self._log_with(self._logger.debug, 3, msg, *args, **kwargs)
54 def error(self, msg, *args, **kwargs): argument
55 self._log_with(self._logger.error, 3, msg, *args, **kwargs)
57 def warn(self, msg, *args, **kwargs): argument
58 self._log_with(self._logger.warn, 3, msg, *args, **kwargs)
[all …]
Dtest_decorators.py163 def __call__(self, *args, **kwargs): argument
170 result = self.func(*args, **kwargs)
188 gathered_extras = self._gather_local_info(None, *args, **kwargs)
200 def gather(self, *args, **kwargs): argument
209 extras = self.func.gather(*args, **kwargs)
213 self._gather_local_info(extras, *args, **kwargs)
217 def _gather_local_info(self, gather_into, *args, **kwargs): argument
229 if not self.predicate or self.predicate(args, kwargs):
260 def __call__(self, *args, **kwargs): argument
265 return self.target(self.instance, *args, **kwargs)
[all …]
Dbase_test.py605 def wrapper(*args, **kwargs): argument
615 return func(*args, **kwargs)
631 kwargs=None, argument
663 kwargs = kwargs or {}
671 test_name = name_func(setting, *args, **kwargs)
688 **kwargs))
693 **kwargs))
/tools/test/connectivity/acts/framework/acts/test_utils/net/
Dui_utils.py108 def _find_node(screen_dump_xml, **kwargs): argument
138 if match_node(node, **kwargs):
140 get_key_value_pair_strings(kwargs))
144 def wait_and_get_xml_node(device, timeout, child=None, sibling=None, **kwargs): argument
173 node = _find_node(screen_dump_xml, **kwargs)
181 % (timeout, get_key_value_pair_strings(kwargs)))
191 def has_element(device, **kwargs): argument
201 timeout_sec = kwargs.pop('timeout', 30)
203 wait_and_get_xml_node(device, timeout_sec, **kwargs)
209 def get_element_attributes(device, **kwargs): argument
[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/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.py121 **kwargs): argument
131 prunenames = kwargs.pop('prunenames', ' '.join(PRUNENAMES))
132 prunepaths = kwargs.pop('prunepaths', os.path.join(search_root, 'out'))
133 if kwargs:
134 raise TypeError('Unexpected **kwargs: %r' % kwargs)
323 def index_targets(output_cache=constants.LOCATE_CACHE, **kwargs): argument
341 class_index = kwargs.pop('class_index', constants.CLASS_INDEX)
342 qclass_index = kwargs.pop('qclass_index', constants.QCLASS_INDEX)
343 package_index = kwargs.pop('package_index', constants.PACKAGE_INDEX)
344 cc_class_index = kwargs.pop('cc_class_index', constants.CC_CLASS_INDEX)
[all …]
/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/acloud/internal/lib/
Dutils.py187 def _FunctionWrapper(*args, **kwargs): argument
189 retry_backoff_factor, *args, **kwargs)
197 retry_backoff_factor, *args, **kwargs): argument
226 return_value = functor(*args, **kwargs)
240 def RetryExceptionType(exception_types, max_retries, functor, *args, **kwargs): argument
255 functor, *args, **kwargs)
259 sleep_interval_secs, *args, **kwargs): argument
281 return_value = func(*args, **kwargs)
471 def PrintColorString(message, colors=TextColors.OKBLUE, **kwargs): argument
489 print(colors + message + TextColors.ENDC, **kwargs)
[all …]
/tools/asuite/aidegen/lib/
Dcommon_util.py84 def wrapper(*args, **kwargs): argument
89 return func(*args, **kwargs)
379 def wrapper(*args, **kwargs): argument
383 return func(*args, **kwargs)
520 def wrapper(*args, **kwargs): argument
523 return func(*args, **kwargs)
554 def decorated(*args, **kwargs): argument
564 if arg_name not in kwargs:
566 arg_val = kwargs.get(arg_name)
573 return func(*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/acts/controllers/
Dadb.py173 def _exec_adb_cmd(self, name, arg_str, **kwargs): argument
175 **kwargs)
177 def _exec_cmd_nb(self, cmd, **kwargs): argument
184 return job.run_async(cmd, **kwargs)
186 def _exec_adb_cmd_nb(self, name, arg_str, **kwargs): argument
188 **kwargs)
271 def adb_call(*args, **kwargs): argument
275 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/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/test/connectivity/acts/framework/tests/controllers/sl4a_lib/
Dsl4a_manager_test.py159 adb.shell = lambda _, **kwargs: ''
184 adb.shell = lambda _, **kwargs: ''
286 adb.shell = lambda _, **kwargs: 'asdf'
296 adb.shell = lambda _, **kwargs: ''
393 session_1.terminate = lambda *args, **kwargs: called_on(session_1)
396 session_4.terminate = lambda *args, **kwargs: called_on(session_4)
399 session_5.terminate = lambda *args, **kwargs: called_on(session_5)
/tools/test/connectivity/acts/framework/acts/libs/proc/
Dprocess.py50 def __init__(self, command, **kwargs): argument
57 if not kwargs.get('shell', False) and isinstance(command, str):
60 self._subprocess_kwargs = kwargs
222 def __start_process(command, **kwargs): argument
226 'Starting command "%s" with kwargs %s', command, kwargs)
227 return subprocess.Popen(command, **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/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
354 return self.rpc(name, *args, **kwargs)
/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)
/tools/asuite/atest/test_finders/
Dmodule_finder.py223 def _get_test_info_filter(self, path, methods, **kwargs): argument
240 if kwargs.get('is_native_test', None):
243 kwargs.get('class_name', '*'), methods), frozenset())])
258 kwargs.get('class_name', '*'), methods), frozenset())])
261 and kwargs.get('rel_module_dir', None) !=
/tools/tradefederation/core/atest/test_finders/
Dmodule_finder.py221 def _get_test_info_filter(self, path, methods, **kwargs): argument
238 if kwargs.get('is_native_test', None):
241 kwargs.get('class_name', '*'), methods), frozenset())])
256 kwargs.get('class_name', '*'), methods), frozenset())])
259 and kwargs.get('rel_module_dir', None) !=
/tools/test/connectivity/acts/framework/acts/metrics/
Dlogger.py102 def for_test_case(cls, *args, **kwargs): argument
112 return TestCaseLoggerProxy(cls, args, kwargs)
115 def for_test_class(cls, *args, **kwargs): argument
125 return TestClassLoggerProxy(cls, args, kwargs)
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dota_chamber.py148 def chamber_call(*args, **kwargs): argument
152 return getattr(self._chamber, item)(*args, **kwargs)
170 def _capture_output(func, *args, **kwargs): argument
174 func(*args, **kwargs)
/tools/acloud/setup/
Dgcp_setup_runner.py158 def RunGcloud(self, cmd, **kwargs): argument
170 env=self._env, **kwargs)
172 def RunGsutil(self, cmd, **kwargs): argument
184 env=self._env, **kwargs)

1234