diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-02-27 18:54:11 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-28 12:27:22 +0000 |
commit | ce0ecf5d847b168ad05117cdd1f5fdcc561d770d (patch) | |
tree | 994a7639091021cff978e90c74e2db6cb8b27e81 /bitbake/lib/bb/runqueue.py | |
parent | e7952c188374508bcf65903d85ae27a593de7465 (diff) | |
download | poky-ce0ecf5d847b168ad05117cdd1f5fdcc561d770d.tar.gz |
bitbake: fix setscene task start/failure handling
* When a setscene task starts, print out that it's starting in the UI
(ensuring we get the correct task name)
* When a setscene task fails, ensure we remove it from the list of
running tasks so that if you break out any time afterwards it
is not still listed.
(Bitbake rev: e8a3499c95a6d4f2b8fed002fb9504733c5be3c6)
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.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 0e5d5c35a9..d4b2cd49aa 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -1724,6 +1724,15 @@ class runQueueEvent(bb.event.Event): | |||
1724 | self.stats = stats.copy() | 1724 | self.stats = stats.copy() |
1725 | bb.event.Event.__init__(self) | 1725 | bb.event.Event.__init__(self) |
1726 | 1726 | ||
1727 | class sceneQueueEvent(runQueueEvent): | ||
1728 | """ | ||
1729 | Base sceneQueue event class | ||
1730 | """ | ||
1731 | def __init__(self, task, stats, rq, noexec=False): | ||
1732 | runQueueEvent.__init__(self, task, stats, rq) | ||
1733 | realtask = rq.rqdata.runq_setscene[task] | ||
1734 | self.taskstring = rq.rqdata.get_user_idstring(realtask, "_setscene") | ||
1735 | |||
1727 | class runQueueTaskStarted(runQueueEvent): | 1736 | class runQueueTaskStarted(runQueueEvent): |
1728 | """ | 1737 | """ |
1729 | Event notifing a task was started | 1738 | Event notifing a task was started |
@@ -1732,12 +1741,12 @@ class runQueueTaskStarted(runQueueEvent): | |||
1732 | runQueueEvent.__init__(self, task, stats, rq) | 1741 | runQueueEvent.__init__(self, task, stats, rq) |
1733 | self.noexec = noexec | 1742 | self.noexec = noexec |
1734 | 1743 | ||
1735 | class sceneQueueTaskStarted(runQueueEvent): | 1744 | class sceneQueueTaskStarted(sceneQueueEvent): |
1736 | """ | 1745 | """ |
1737 | Event notifing a setscene task was started | 1746 | Event notifing a setscene task was started |
1738 | """ | 1747 | """ |
1739 | def __init__(self, task, stats, rq, noexec=False): | 1748 | def __init__(self, task, stats, rq, noexec=False): |
1740 | runQueueEvent.__init__(self, task, stats, rq) | 1749 | sceneQueueEvent.__init__(self, task, stats, rq) |
1741 | self.noexec = noexec | 1750 | self.noexec = noexec |
1742 | 1751 | ||
1743 | class runQueueTaskFailed(runQueueEvent): | 1752 | class runQueueTaskFailed(runQueueEvent): |
@@ -1748,14 +1757,13 @@ class runQueueTaskFailed(runQueueEvent): | |||
1748 | runQueueEvent.__init__(self, task, stats, rq) | 1757 | runQueueEvent.__init__(self, task, stats, rq) |
1749 | self.exitcode = exitcode | 1758 | self.exitcode = exitcode |
1750 | 1759 | ||
1751 | class sceneQueueTaskFailed(runQueueEvent): | 1760 | class sceneQueueTaskFailed(sceneQueueEvent): |
1752 | """ | 1761 | """ |
1753 | Event notifing a setscene task failed | 1762 | Event notifing a setscene task failed |
1754 | """ | 1763 | """ |
1755 | def __init__(self, task, stats, exitcode, rq): | 1764 | def __init__(self, task, stats, exitcode, rq): |
1756 | runQueueEvent.__init__(self, task, stats, rq) | 1765 | sceneQueueEvent.__init__(self, task, stats, rq) |
1757 | self.exitcode = exitcode | 1766 | self.exitcode = exitcode |
1758 | self.taskstring = rq.rqdata.get_user_idstring(task, "_setscene") | ||
1759 | 1767 | ||
1760 | class runQueueTaskCompleted(runQueueEvent): | 1768 | class runQueueTaskCompleted(runQueueEvent): |
1761 | """ | 1769 | """ |