Как запустить vts для определенного устройства, когда подключено несколько устройств
У меня есть установка AOSP VTS (версия 9), которая отлично работает в Linux, когда подключено одно устройство. Однако, когда к компьютеру подключены два устройства, есть ли возможность выбрать устройство, на котором должен работать VTS?
Я заметил, что "I/DeviceManager: обнаружено новое устройство" появляется, когда запускается приложение vts-tradefed.
VTS следует запускать только на определенном устройстве, а не на обоих устройствах. Можно предположить, что другое устройство выполняет какую-то другую операцию, и его нельзя беспокоить. Это возможно?
заранее спасибо
1 ответ
Помощь VTS:
vts-tf > help run
r(?:un)? help:
command <config> [options] Run the specified command
<config> [options] Shortcut for the above: run specified command
cmdfile <cmdfile.txt> Run the specified commandfile
commandAndExit <config> [options] Run the specified command, and run 'exit -c' immediately afterward
cmdfileAndExit <cmdfile.txt> Run the specified commandfile, and run 'exit -c' immediately afterward
----- Vendor Test Suite specific options -----
<plan> --module/-m <module> Run a test module
<plan> --module/-m <module> --test/-t <test_name> Run a specific test from the module. Test name can be <package>.<class>, <package>.<class>#<method> or <native_binary_name>
Available Options:
--serial/-s <device_id>: The device to run the test on
--abi/-a <abi> : The ABI to run the test against
--logcat-on-failure : Capture logcat when a test fails
--bugreport-on-failure : Capture a bugreport when a test fails
--screenshot-on-failure: Capture a screenshot when a test fails
--shard-count <shards>: Shards a run into the given number of independent chunks, to run on multiple devices in parallel.
----- In order to retry a previous run -----
retry --retry <session id to retry> [--retry-type <FAILED | NOT_EXECUTED>]
Without --retry-type, retry will run both FAIL and NOT_EXECUTED tests
Устройство для запуска теста можно указать с помощью --serial