我运行 VTS 测试套件,我的测试 100% 失败,并出现以下一致错误:
AdbError: Error executing adb cmd 'adb -s 10.1.1.5:5555 reverse tcp:5010 tcp:1489'. ret: 1, stdout: , stderr: error: more than one device/emulator
AdbError: Error executing adb cmd 'adb -s 10.1.1.5:5555 reverse tcp:5010 tcp:1922'. ret: 1, stdout: , stderr: error: more than one device/emulator
AdbError: Error executing adb cmd 'adb -s 10.1.1.5:5555 reverse tcp:5010 tcp:4950'. ret: 1, stdout: , stderr: error: more than one device/emulator
AdbError: Error executing adb cmd 'adb -s 10.1.1.5:5555 reverse tcp:5010 tcp:1566'. ret: 1, stdout: , stderr: error: more than one device/emulator
AdbError: Error executing adb cmd 'adb -s 10.1.1.5:5555 reverse tcp:5010 tcp:7793'. ret: 1, stdout: , stderr: error: more than one device/emulator
AdbError: Error executing adb cmd 'adb -s 10.1.1.5:5555 reverse tcp:5010 tcp:4126'. ret: 1, stdout: , stderr: error: more than one device/emulator
AdbError: Error executing adb cmd 'adb -s 10.1.1.5:5555 reverse tcp:5010 tcp:3753'. ret: 1, stdout: , stderr: error: more than one device/emulator
消息是stderr: error: more than one device/emulator
,但如果我列出adb devices
我只会得到一台设备
List of devices attached
10.1.1.5:5555 device
在 VTS 提示符下相同:
vts-tf > l d
Serial State Allocation Product Variant Build Battery
10.1.1.5:5555 ONLINE Allocated dev_prod dev_prod 6/22/2018.025 100
我与被测设备的连接不是通过 USB 而是通过以太网。
adb
既然more than one device/emulator
不是这样,又何必呢?
有谁知道在什么服务端口5010
以及为什么被重定向(reverse
)到随机端口1489, 1922, 4950
等?