aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/views.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-02-26 21:41:55 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-27 07:36:05 +0000
commit2d1d6a8ee63db03afefced40c9242cd9d7294c6a (patch)
tree1aee37ce40373b268f94cff54d7c1b4f28fdeb0d /bitbake/lib/toaster/toastergui/views.py
parent63e5d478f520e098957a86be53041b1bb84f6b98 (diff)
downloadopenembedded-core-contrib-2d1d6a8ee63db03afefced40c9242cd9d7294c6a.tar.gz
bitbake: toastergui: stop covered task graph traversal early
This patch stops the breadth-frist graph traversal for finding covering tasks after the finding the first level of executed tasks. The reasoning is that the first level of executed tasks is the actually relevent information on how a task was covered. (Bitbake rev: 06294c5d3b512fb849fc1eedc9d5ea344f535bec) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index aabc3d0cd8..a206f80b64 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -357,6 +357,8 @@ def generateCoveredList2( revlist = [] ):
covered_list = [ x for x in revlist if x.outcome == Task.OUTCOME_COVERED ]
while len(covered_list):
revlist = [ x for x in revlist if x.outcome != Task.OUTCOME_COVERED ]
+ if len(revlist) > 0:
+ return revlist
newlist = _find_task_revdep_list(covered_list)
@@ -379,10 +381,7 @@ def task( request, build_id, task_id ):
coveredBy = '';
if ( task.outcome == Task.OUTCOME_COVERED ):
# _list = generateCoveredList( task )
- _list = generateCoveredList2( _find_task_revdep( task ) )
- coveredBy = [ ]
- for t in _list:
- coveredBy.append( t )
+ coveredBy = sorted(generateCoveredList2( _find_task_revdep( task ) ), key = lambda x: x.recipe.name)
log_head = ''
log_body = ''
if task.outcome == task.OUTCOME_FAILED: