summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-07-19 11:56:03 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-21 08:41:12 +0100
commit21bb330f4632ae9e8dd9eaff2879bcd24f9cf194 (patch)
tree476a3ff0b5d7fc0f89fafc0cba2b720a6e6b5f3e /bitbake/lib/bb/runqueue.py
parenteb7401d47087ba2347dcf780a0d07969bed4c072 (diff)
downloadpoky-21bb330f4632ae9e8dd9eaff2879bcd24f9cf194.tar.gz
bitbake: lib/bb/event: refactor printing events
We really ought to have just one place where the string representation of these events is produced. This doesn't take any real control away from the UI - if an alternative representation is desired, that can still be made. (Bitbake rev: cb15db2a799be6d8eab9a2a43a9a573f89229cff) 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/runqueue.py')
-rw-r--r--bitbake/lib/bb/runqueue.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 21520d3d6a..7dd964d1c4 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -2488,6 +2488,9 @@ class runQueueTaskFailed(runQueueEvent):
2488 runQueueEvent.__init__(self, task, stats, rq) 2488 runQueueEvent.__init__(self, task, stats, rq)
2489 self.exitcode = exitcode 2489 self.exitcode = exitcode
2490 2490
2491 def __str__(self):
2492 return "Task (%s) failed with exit code '%s'" % (self.taskstring, self.exitcode)
2493
2491class sceneQueueTaskFailed(sceneQueueEvent): 2494class sceneQueueTaskFailed(sceneQueueEvent):
2492 """ 2495 """
2493 Event notifying a setscene task failed 2496 Event notifying a setscene task failed
@@ -2496,6 +2499,9 @@ class sceneQueueTaskFailed(sceneQueueEvent):
2496 sceneQueueEvent.__init__(self, task, stats, rq) 2499 sceneQueueEvent.__init__(self, task, stats, rq)
2497 self.exitcode = exitcode 2500 self.exitcode = exitcode
2498 2501
2502 def __str__(self):
2503 return "Setscene task (%s) failed with exit code '%s' - real task will be run instead" % (self.taskstring, self.exitcode)
2504
2499class sceneQueueComplete(sceneQueueEvent): 2505class sceneQueueComplete(sceneQueueEvent):
2500 """ 2506 """
2501 Event when all the sceneQueue tasks are complete 2507 Event when all the sceneQueue tasks are complete