'How Jenkins run Android CTS tests with multiple devices?

I can run "run cts -m CtsMediaTestsCases --shard-count 2 -s xxx -s xxx" in terminal,but when I use Jenkins, it will not block and failed.Can someone help me with this situation?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source