我有一个AOSP VTS(版本9)设置,当连接一台设备时,该设置在Linux上运行良好。但是,当两个设备连接到计算机时,是否有一个选项可以让我们选择应在其上运行VTS的设备?
我注意到正在运行由vts交易的应用程序时出现“ I / DeviceManager:检测到新设备”。
VTS应该仅在特定设备上运行,而不能在两个设备上运行。我们可以假定其他设备正在执行其他操作,因此不应受到干扰。这可能吗?
提前感谢
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指定要运行测试的设备