mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-14 12:01:30 +00:00
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.
This commit is contained in:
parent
8cb336e0c9
commit
e09ea3f4bc
@ -678,7 +678,12 @@ class AutopkgtestPolicy(BasePolicy):
|
|||||||
# all come from linux-meta*. A new kernel ABI without a corresponding
|
# 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
|
# -meta won't be installed and thus we can't sensibly run tests against
|
||||||
# it.
|
# it.
|
||||||
if src.startswith('linux') and src.replace('linux', 'linux-meta') in sources_info:
|
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 []
|
return []
|
||||||
|
|
||||||
# we want to test the package itself, if it still has a test in unstable
|
# we want to test the package itself, if it still has a test in unstable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user