(cmd)
| 148 | |
| 149 | |
| 150 | def run_command_with_popen(cmd): |
| 151 | with subprocess.Popen( |
| 152 | cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, bufsize=1, encoding='utf8') as sub_process: |
| 153 | for line in iter(sub_process.stdout.readline, ''): |
| 154 | sys.stdout.write(line) |
| 155 | |
| 156 | |
| 157 | def async_run_command_with_popen(cmd, device_id): |
no outgoing calls
no test coverage detected