projects
/
tools
/
mic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cbc8af
)
fix p.communicate() return bytes not text issue
author
biao716.wang
<biao716.wang@samsung.com>
Wed, 17 Aug 2022 10:09:06 +0000
(19:09 +0900)
committer
biao716.wang
<biao716.wang@samsung.com>
Wed, 17 Aug 2022 10:09:06 +0000
(19:09 +0900)
Change-Id: I9f72892dbd86ad01913bf0d709b55f5dfca0aa7c
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
mic/utils/runner.py
patch
|
blob
|
history
diff --git
a/mic/utils/runner.py
b/mic/utils/runner.py
index 56ca86f1e457f907a0dbe396b25049f83b09e565..e22d734547cd619687390e2998f110c18a177883 100644
(file)
--- a/
mic/utils/runner.py
+++ b/
mic/utils/runner.py
@@
-63,8
+63,8
@@
def runtool(cmdln_or_args, catch=1):
serr = subprocess.STDOUT
try:
- p = subprocess.Popen(cmdln_or_args, stdout=s
out
,
- stderr=s
err, shell=shell
)
+ p = subprocess.Popen(cmdln_or_args, stdout=s
ubprocess.PIPE
,
+ stderr=s
ubprocess.PIPE, shell=shell, universal_newlines=True
)
(sout, serr) = p.communicate()
# combine stdout and stderr, filter None out
out = ''.join([_f for _f in [sout, serr] if _f])