blob: 9ede1dffa622c123279f81cbcca62343e8e1c016 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
metadata:
name: share-local-device-over-adb-tcpip
format: "Lava-Test-Shell Test Definition 1.0"
description: "adb MultiNode setup: make local device remotely accessible via adb TCP/IP.
Handles the device over to a role that responds to the following synchronization steps:
- lava-sync start_handover
- lava-send dut_address dut_address=${dut_address}
- lava-sync finish_handover"
maintainer:
- karsten@fairphone.com
- softwareteam@fairphone.com
os:
- debian
- ubuntu
devices:
- lxc
scope:
- functional
params:
ADB_PORT: "5555"
ADB_TCPIP_ATTEMPTS: "5"
TIMEOUT_SECS: "60"
RAISE_ON_FAILURE: "true"
run:
steps:
- . ./automated/lib/sh-test-lib
- . ./automated/lib/android-test-lib
- . ./automated/lib/android-multinode-test-lib
- ret_val=0
- share_local_device_over_adb_tcpip "${ADB_TCPIP_ATTEMPTS}" "${TIMEOUT_SECS}" "${ADB_PORT}" || ret_val=$?
- |
if [ "${ret_val}" -ne 0 -a "${RAISE_ON_FAILURE}" = "true" ]; then
lava-test-raise "Could not share device of adb tcpip."
fi
|