I am trying to automate CTS automatically with Python. I can use that on single device but can't run on multiple devices with same python code(subprocess.Popen) .
['android-cts/tools/cts-tradefed', 'run', 'cts', '--shards', '1'] works
['android-cts/tools/cts-tradefed', 'run', 'cts', '--shards', '2']doesn't work
My question is how can I start shards CTS testing with python to automatically test CTS on multiple devices?
When running Android Compatibility Test Suite (CTS) with multiple shards to distribute the testing across multiple devices, you need to manage and coordinate the test execution for each shard separately. This typically involves starting a separate cts-tradefed process for each shard and specifying the shard number for each process.