From 11a023d1338fb17c0a5ff4083b0c1c016b84dded Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sat, 6 Nov 2021 00:06:51 +0100 Subject: [PATCH] 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. --- britney2/policies/autopkgtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/britney2/policies/autopkgtest.py b/britney2/policies/autopkgtest.py index 7f970be..2fbf7c1 100644 --- a/britney2/policies/autopkgtest.py +++ b/britney2/policies/autopkgtest.py @@ -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):