mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-04-17 06:01:20 +00:00
Only run riscv64 autopkgtest for Noble and onwards
This commit is contained in:
parent
dbe65fe272
commit
9593404d8b
@ -38,6 +38,7 @@ from urllib.error import HTTPError
|
||||
from urllib.request import urlopen
|
||||
|
||||
import apt_pkg
|
||||
import distro_info
|
||||
|
||||
import britney2.hints
|
||||
|
||||
@ -846,9 +847,12 @@ class AutopkgtestPolicy(BasePolicy):
|
||||
# britney throw some tests at it, but we don't want the whole universe to come
|
||||
# there either, hence the filtering on main.
|
||||
try:
|
||||
# Filter tests to main packages on riscv64
|
||||
# Filter tests to main packages on riscv64 for Noble+
|
||||
if arch == "riscv64":
|
||||
tests = [(src, version) for (src, version) in tests if sources_info[src].component == UbuntuComponent.MAIN]
|
||||
if self.options.series >= distro_info.UbuntuDistroInfo().codename("noble"):
|
||||
tests = [(src, version) for (src, version) in tests if sources_info[src].component == UbuntuComponent.MAIN]
|
||||
else:
|
||||
tests = []
|
||||
except KeyError: # Sometimes™, sources_info[src] raises KeyError
|
||||
pass
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user