From 89be9112d3252516fe9134d4b4dbb0df9f10524d Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 31 Jul 2015 09:18:17 +0200 Subject: [PATCH] Alphabetically sort cloud autopkgtest results --- autopkgtest.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/autopkgtest.py b/autopkgtest.py index 91618e8..c0cd064 100644 --- a/autopkgtest.py +++ b/autopkgtest.py @@ -141,12 +141,14 @@ class AutoPackageTest(object): reported_pkgs = set() + tests = [] + srcinfo = sources_info[src] # we want to test the package itself, if it still has a test in # unstable if srcinfo[AUTOPKGTEST]: reported_pkgs.add(src) - yield (src, ver) + tests.append((src, ver)) # plus all direct reverse dependencies of its binaries which have # an autopkgtest @@ -162,9 +164,12 @@ class AutoPackageTest(object): if sources_info[rdep_src][AUTOPKGTEST]: if rdep_src not in reported_pkgs: # we don't care about the version of rdep - yield (rdep_src, sources_info[rdep_src][VERSION]) + tests.append((rdep_src, sources_info[rdep_src][VERSION])) reported_pkgs.add(rdep_src) + tests.sort(key=lambda (s, v): s) + return tests + # # AMQP/cloud interface helpers #