Commit fe327be
util/helper: add stderr param to ProcessWrapper.check_output()
Allow separation of stderr from the output. For example, stderr can be
ignored by redirecting it to subprocess.DEVNULL or prevent capturing by
passing None, similar to how subprocess handles it.
Signed-off-by: Hoppy <dev.hoppy@gmail.com>
[bst: use default similar to subprocess: subprocess.STDOUT means merging
stdout and stderr, None means no capturing; raise on unsupported stderr
values]
Signed-off-by: Bastian Krause <bst@pengutronix.de>1 parent 063d1bd commit fe327be
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
46 | 52 | | |
47 | 53 | | |
48 | 54 | | |
| |||
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
62 | | - | |
63 | | - | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
0 commit comments