diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-06-03 10:44:44 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-06-03 10:44:50 +0000 |
commit | 21873953f409ced32f826ca32d1f9c3107b4df83 (patch) | |
tree | 90c338cd8f4805d7a3c2f54fb886b55ef17b6bee | |
parent | 50003c9dd3deb5b2912644723481bdef802e35f7 (diff) | |
download | morph-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.py | 2 |
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) |