From 21873953f409ced32f826ca32d1f9c3107b4df83 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Fri, 3 Jun 2016 10:44:44 +0000 Subject: 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 --- morphlib/builder.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.1