Only log force-reset-test hints for matching packages

Logging all force-reset-test hints for every package causes
about 850 MB of logs in the last run of 880 MB of logs in total,
let's only log ones matching the package instead, as we do for
force-badtest.
less-recipients
Julian Andres Klode 3 years ago
parent ef29d8e2c2
commit 11a023d133

@ -1415,10 +1415,10 @@ class AutopkgtestPolicy(BasePolicy):
self.reset_hints = self.hints.search('force-reset-test')
for hint in self.reset_hints:
self.logger.info('Checking hints for %s/%s/%s: %s' % (src, ver, arch, str(hint)))
for mi in hint.packages:
if mi.package != src:
continue
self.logger.info('Checking hints for %s/%s/%s: %s' % (src, ver, arch, str(hint)))
if (mi.architecture in ['source', arch] and
mi.version != 'all' and
apt_pkg.version_compare(mi.version, ver) >= 0):

Loading…
Cancel
Save