mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-30 17:50:46 +00:00
test_target.py: Allow specifying connection timeout for Android targets
Default connection timeout (30 secs) may be insufficient for some test setups or in some conditions. Thus, support specifying timeout parameter in target configuration file. Signed-off-by: Metin Kaya <metin.kaya@arm.com>
This commit is contained in:
parent
ac4f581f4b
commit
233f76d03a
@ -1,5 +1,6 @@
|
||||
AndroidTarget:
|
||||
entry-0:
|
||||
timeout: 60
|
||||
connection_settings:
|
||||
device: 'emulator-5554'
|
||||
|
||||
|
@ -41,9 +41,11 @@ def build_targets():
|
||||
for entry in target_configs['AndroidTarget'].values():
|
||||
pp(entry)
|
||||
a_target = AndroidTarget(
|
||||
connect=False,
|
||||
connection_settings=entry['connection_settings'],
|
||||
conn_cls=lambda **kwargs: AdbConnection(adb_as_root=True, **kwargs),
|
||||
)
|
||||
a_target.connect(timeout=entry.get('timeout', 60))
|
||||
targets.append((a_target, None))
|
||||
|
||||
if target_configs.get('LinuxTarget') is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user