如何避免在非交互模式下运行(python子流程.Popen)

2024-09-30 20:17:56 发布

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

当我使用子流程.Popen要运行cts,它总是进入非交互模式,然后停止。在

Non-interactive mode: Running initial command then exiting.

下面是我使用的代码。在

subprocess.Popen(command_list, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)

Android CTS 5.1_r5 Non-interactive mode: Running initial command then exiting. Using commandline arguments as starting command: [run, cts, --plan, CTS, -s, JS2U300154120087, --disable-reboot] 02-27 17:49:09 I/DeviceManager: Detected new device JS2C300154455332 02-27 17:49:09 I/DeviceManager: Detected new device JS2U300154120087 02-27 17:49:09 I/TestInvocation: Starting invocation for 'cts' on build '5.1_r5' on device JS2U300154120087 02-27 17:49:09 I/JS2U300154120087: Created result dir 2016.02.27_17.49.09 02-27 17:49:10 I/CtsTest: ABIs: [armeabi-v7a, arm64-v8a]


Tags: modedevicerunningcommandinteractiveinitialsubprocesspopen