when I use subprocess.Popen to runn cts it always get into Non-interactive mode then stopped.
Non-interactive mode: Running initial command then exiting.
Below is the code I used.
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]