为什么从perl或Python scrip运行不适用于Android中2个或更多设备的gts碎片

2024-10-02 10:23:36 发布

您现在位置:Python中文网/ 问答频道 /正文

在Android gts-tradefedxts-tradefed中,perl或Python脚本中的“shards”选项不适用于2台或更多设备。在

Python代码

import subprocess

p = subprocess.Popen('./gts-tradefed run gts --shards 2', stdout=subprocess.PIPE,stderr=subprocess.PIPE,stdin=subprocess.PIPE)
out, err = p.communicate()
print out

命令输出:

^{pr2}$

如果命令"run gts --shards 2"在^{中输入,则}将按预期工作。在

请建议如何调用"./gts-tradefed run gts --shards 2"并从Python或perl脚本执行它。在


Tags: run代码import命令脚本选项outperl

热门问题