summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2016-06-03 10:44:44 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2016-06-03 10:44:50 +0000
commit21873953f409ced32f826ca32d1f9c3107b4df83 (patch)
tree90c338cd8f4805d7a3c2f54fb886b55ef17b6bee
parent50003c9dd3deb5b2912644723481bdef802e35f7 (diff)
downloadmorph-21873953f409ced32f826ca32d1f9c3107b4df83.tar.gz
Make clear how long a command took to fail
This is done by adding an status update when a command fails. An example of the new output is: 2016-06-03 10:35:04 [Build 5/133] [stage2-libstdc++] Creating staging area 2016-06-03 10:35:04 [Build 5/133] [stage2-libstdc++] Starting actual build: stage2-libstdc++ fc4868e 2016-06-03 10:35:04 [Build 5/133] [stage2-libstdc++] Extracting /src/gcc-tarball into /src/tmp/staging/tmpE5b84y/stage2-libstdc++.build 2016-06-03 10:35:38 [Build 5/133] [stage2-libstdc++] Running configure-commands 2016-06-03 10:35:55 [Build 5/133] [stage2-libstdc++] Running build-commands 2016-06-03 10:36:14 [Build 5/133] [stage2-libstdc++] Error when running build-commands Change-Id: Iac94794311e649d13c534f453d3473ac8003e8f4
-rw-r--r--morphlib/builder.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/morphlib/builder.py b/morphlib/builder.py
index 166b790b..0bac730c 100644
--- a/morphlib/builder.py
+++ b/morphlib/builder.py
@@ -391,6 +391,8 @@ class ChunkBuilder(BuilderBase):
stdout.flush()
if exit_code != 0:
+ self.app.status(msg='Error when running %(key)s',
+ key=key)
if not stdout:
with open(logfilepath, 'r') as log:
shutil.copyfileobj(log, self.app.output)