(cmd)
| 154 | |
| 155 | |
| 156 | def run_command_with_popen(cmd): |
| 157 | with subprocess.Popen( |
| 158 | cmd, |
| 159 | stdout=subprocess.PIPE, |
| 160 | stderr=subprocess.STDOUT, |
| 161 | bufsize=1, |
| 162 | encoding='utf8') as sub_process: |
| 163 | for line in iter(sub_process.stdout.readline, ''): |
| 164 | sys.stdout.write(line) |
| 165 | |
| 166 | |
| 167 | def async_run_command_with_popen(cmd, device_id): |
no test coverage detected
searching dependent graphs…