summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tinfoil.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-08-31 11:30:44 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-31 23:30:03 +0100
commita3971620dc00d459dbc0ce25082feb7099fb967f (patch)
treec6b686c1fdbd2c0723431c3cf6794c6aeddc18c5 /bitbake/lib/bb/tinfoil.py
parent6ef0a567706be050c65efcebf444510c0969ce89 (diff)
downloadpoky-a3971620dc00d459dbc0ce25082feb7099fb967f.tar.gz
bitbake: tinfoil: ensure log lines get printed when tasks fail
If a task fails during build_targets(), we need to print out the log lines as knotty does or the user will be missing information about the failure. (This should get some deeper refactoring, but now isn't the time for that.) (Bitbake rev: 24879df071d4803db3d39ae1d5cad852daa92f28) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/tinfoil.py')
-rw-r--r--bitbake/lib/bb/tinfoil.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py
index fd17edcc58..b50ed0553f 100644
--- a/bitbake/lib/bb/tinfoil.py
+++ b/bitbake/lib/bb/tinfoil.py
@@ -714,6 +714,9 @@ class Tinfoil:
714 eventmask.extend(extra_events) 714 eventmask.extend(extra_events)
715 ret = self.set_event_mask(eventmask) 715 ret = self.set_event_mask(eventmask)
716 716
717 includelogs = self.config_data.getVar('BBINCLUDELOGS')
718 loglines = self.config_data.getVar('BBINCLUDELOGS_LINES')
719
717 ret = self.run_command('buildTargets', targets, task) 720 ret = self.run_command('buildTargets', targets, task)
718 if handle_events: 721 if handle_events:
719 result = False 722 result = False
@@ -743,6 +746,10 @@ class Tinfoil:
743 if event_callback and event_callback(event): 746 if event_callback and event_callback(event):
744 continue 747 continue
745 if helper.eventHandler(event): 748 if helper.eventHandler(event):
749 if isinstance(event, bb.build.TaskFailedSilent):
750 logger.warning("Logfile for failed setscene task is %s" % event.logfile)
751 elif isinstance(event, bb.build.TaskFailed):
752 bb.ui.knotty.print_event_log(event, includelogs, loglines, termfilter)
746 continue 753 continue
747 if isinstance(event, bb.event.ProcessStarted): 754 if isinstance(event, bb.event.ProcessStarted):
748 if self.quiet > 1: 755 if self.quiet > 1: