From 2ed6da1e0d86d67b4a665e364078014ef9e945c8 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Thu, 16 Jul 2020 11:34:20 +0100 Subject: [PATCH] autopkgtest: When skipping linux-* packages for Ubuntu, consider the source suite We often introduce new kernels post-release, and we still want to not trigger tests for the kernel image packages. Check for -meta in the *source* suite as well as the target. Fix the -meta name calculation for linux-signed-foo. --- britney2/policies/autopkgtest.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/britney2/policies/autopkgtest.py b/britney2/policies/autopkgtest.py index e562e1e..74785ac 100644 --- a/britney2/policies/autopkgtest.py +++ b/britney2/policies/autopkgtest.py @@ -679,8 +679,13 @@ class AutopkgtestPolicy(BasePolicy): # all come from linux-meta*. A new kernel ABI without a corresponding # -meta won't be installed and thus we can't sensibly run tests against # it. - if src.startswith('linux') and src.replace('linux', 'linux-meta') in sources_info: - return [] + if src.startswith('linux'): + if src.startswith('linux-signed'): + meta = src.replace('linux-signed', 'linux-meta') + else: + meta = src.replace('linux', 'linux-meta') + if meta in sources_info or meta in source_suite.sources: + return [] # we want to test the package itself, if it still has a test in unstable # but only if the package actually exists on this arch