Alphabetically sort cloud autopkgtest results

bzr-import-20160707
Martin Pitt 10 years ago
parent 69bf766a7a
commit 89be9112d3

@ -141,12 +141,14 @@ class AutoPackageTest(object):
reported_pkgs = set() reported_pkgs = set()
tests = []
srcinfo = sources_info[src] srcinfo = sources_info[src]
# we want to test the package itself, if it still has a test in # we want to test the package itself, if it still has a test in
# unstable # unstable
if srcinfo[AUTOPKGTEST]: if srcinfo[AUTOPKGTEST]:
reported_pkgs.add(src) reported_pkgs.add(src)
yield (src, ver) tests.append((src, ver))
# plus all direct reverse dependencies of its binaries which have # plus all direct reverse dependencies of its binaries which have
# an autopkgtest # an autopkgtest
@ -162,9 +164,12 @@ class AutoPackageTest(object):
if sources_info[rdep_src][AUTOPKGTEST]: if sources_info[rdep_src][AUTOPKGTEST]:
if rdep_src not in reported_pkgs: if rdep_src not in reported_pkgs:
# we don't care about the version of rdep # 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) reported_pkgs.add(rdep_src)
tests.sort(key=lambda (s, v): s)
return tests
# #
# AMQP/cloud interface helpers # AMQP/cloud interface helpers
# #

Loading…
Cancel
Save