mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-19 06:21:31 +00:00
AutoPkgTest.tests_for_source(): Avoid reporting duplicate results
This commit is contained in:
parent
2f9f5fd0eb
commit
9c59f35af4
@ -86,10 +86,13 @@ class AutoPackageTest(object):
|
|||||||
# interested in for reverse dependency checking
|
# interested in for reverse dependency checking
|
||||||
binaries_info = self.britney.binaries['unstable']['amd64'][0]
|
binaries_info = self.britney.binaries['unstable']['amd64'][0]
|
||||||
|
|
||||||
|
reported_pkgs = set()
|
||||||
|
|
||||||
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)
|
||||||
yield (src, ver)
|
yield (src, ver)
|
||||||
|
|
||||||
# plus all direct reverse dependencies of its binaries which have
|
# plus all direct reverse dependencies of its binaries which have
|
||||||
@ -104,8 +107,10 @@ class AutoPackageTest(object):
|
|||||||
for rdep in rdeps:
|
for rdep in rdeps:
|
||||||
rdep_src = binaries_info[rdep][SOURCE]
|
rdep_src = binaries_info[rdep][SOURCE]
|
||||||
if sources_info[rdep_src][AUTOPKGTEST]:
|
if sources_info[rdep_src][AUTOPKGTEST]:
|
||||||
# we don't care about the version of rdep
|
if rdep_src not in reported_pkgs:
|
||||||
yield (rdep_src, None)
|
# we don't care about the version of rdep
|
||||||
|
yield (rdep_src, None)
|
||||||
|
reported_pkgs.add(rdep_src)
|
||||||
|
|
||||||
#
|
#
|
||||||
# AMQP/cloud interface helpers
|
# AMQP/cloud interface helpers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user