summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/terminal.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py
index 3901ad3f26..3c8ef59a45 100644
--- a/meta/lib/oe/terminal.py
+++ b/meta/lib/oe/terminal.py
@@ -227,6 +227,8 @@ def spawn(name, sh_cmd, title=None, env=None, d=None):
227 227
228 pipe = terminal(sh_cmd, title, env, d) 228 pipe = terminal(sh_cmd, title, env, d)
229 output = pipe.communicate()[0] 229 output = pipe.communicate()[0]
230 if output:
231 output = output.decode("utf-8")
230 if pipe.returncode != 0: 232 if pipe.returncode != 0:
231 raise ExecutionError(sh_cmd, pipe.returncode, output) 233 raise ExecutionError(sh_cmd, pipe.returncode, output)
232 234