0

我有一个 AOSP VTS(版本 9)设置,当连接一个设备时,它在 Linux 上运行良好。但是,当两台设备连接到计算机时,是否有让我们选择运行 VTS 的设备的选项?

我注意到在运行 vts-tradefed 应用程序时出现“I/DeviceManager: Detected new device”。

VTS 应仅在特定设备上运行,而不应在两个设备上运行。我们可以假设另一个设备正在执行一些其他操作并且不应该受到干扰。这可能吗?

提前致谢

4

1 回答 1

0

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 指定运行测试的设备

于 2019-11-09T15:54:18.810 回答