summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiaojuan.mao <xiaojuan.mao@samsung.com>2017-03-14 10:13:13 +0800
committerSoonKyu Park <sk7.park@samsung.com>2017-04-04 21:32:47 +0900
commit6a2a1dc7a00a027cf4baefc59f5f36b4c378a329 (patch)
treed2800e32b14260151776273d6ace449cdc6e82d1
parent741b24e8363b09b59445fc7d9bc6d9cc1baa1cd7 (diff)
downloadmic-6a2a1dc7a00a027cf4baefc59f5f36b4c378a329.tar.gz
mic-6a2a1dc7a00a027cf4baefc59f5f36b4c378a329.tar.bz2
mic-6a2a1dc7a00a027cf4baefc59f5f36b4c378a329.zip
Show logs inside 'Running scripts' in mic.
Change-Id: I6be708a8c791911d96d903063401a156bc23c138
-rwxr-xr-x[-rw-r--r--]mic/imager/baseimager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mic/imager/baseimager.py b/mic/imager/baseimager.py
index 18a2d9c..0812023 100644..100755
--- a/mic/imager/baseimager.py
+++ b/mic/imager/baseimager.py
@@ -1164,8 +1164,8 @@ class BaseImageCreator(object):
env = env,
stdout = subprocess.PIPE,
stderr = subprocess.STDOUT)
- for entry in p.communicate()[0].splitlines():
- msger.info(entry)
+ while p.poll() == None:
+ msger.info(p.stdout.readline().strip())
except OSError, (err, msg):
raise CreatorError("Failed to execute %%post script "
"with '%s' : %s" % (s.interp, msg))