80,351
社区成员
发帖
与我相关
我的任务
分享
popen = subprocess.Popen(command_list, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
for line in iter(popen.stdout.readline, b''):
clean_line = line.decode("utf-8").strip()
if verbose:
print(prefix + "------< " + clean_line)
sys.stdout.flush()
yield clean_line
tmp/android-cts/tools/cts-tradefed run cts --plan CTS-hardware --shards 2 --disable-reboot | tee TTT
Android CTS 5.1_r5
Non-interactive mode: Running initial command then exiting.
Using commandline arguments as starting command: [run, cts, --plan, CTS-hardware, --shards, 2, --disable-reboot]
03-04 21:45:41 I/DeviceManager: Detected new device JIDEBJFORCTS0001
03-04 21:45:41 I/DeviceManager: Detected new device 20080411
03-04 21:45:41 I/unknown_device: Created result dir 2016.03.04_21.45.41
Saved log to /tmp/tradefed_global_log_2759563044977409240.txt
03-04 21:45:42 I/CommandScheduler: All done