Read output from command. Returns a tuple of the return status, stdout text and stderr text.
(c, *k, **kw)
| 347 | |
| 348 | |
| 349 | def read_pipe_full(c, *k, **kw): |
| 350 | """Read output from command. Returns a tuple of the return status, stdout |
| 351 | text and stderr text. |
| 352 | """ |
| 353 | if verbose: |
| 354 | sys.stderr.write('Reading pipe: {}\n'.format(' '.join(c))) |
| 355 | |
| 356 | p = subprocess.Popen( |
| 357 | c, stdout=subprocess.PIPE, stderr=subprocess.PIPE, *k, **kw) |
| 358 | out, err = p.communicate() |
| 359 | return (p.returncode, out, decode_text_stream(err)) |
| 360 | |
| 361 | |
| 362 | def read_pipe(c, ignore_error=False, raw=False, *k, **kw): |
no test coverage detected