mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-06 15:21:38 +00:00
Merge remote-tracking branch 'hyask/skia/riscv64_tests_only_noble'
This commit is contained in:
commit
a0bf23fba0
@ -38,6 +38,7 @@ from urllib.error import HTTPError
|
|||||||
from urllib.request import urlopen
|
from urllib.request import urlopen
|
||||||
|
|
||||||
import apt_pkg
|
import apt_pkg
|
||||||
|
import distro_info
|
||||||
|
|
||||||
import britney2.hints
|
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
|
# britney throw some tests at it, but we don't want the whole universe to come
|
||||||
# there either, hence the filtering on main.
|
# there either, hence the filtering on main.
|
||||||
try:
|
try:
|
||||||
# Filter tests to main packages on riscv64
|
# Filter tests to main packages on riscv64 for Noble+
|
||||||
if arch == "riscv64":
|
if arch == "riscv64":
|
||||||
|
if self.options.series >= distro_info.UbuntuDistroInfo().codename("noble"):
|
||||||
tests = [(src, version) for (src, version) in tests if sources_info[src].component == UbuntuComponent.MAIN]
|
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
|
except KeyError: # Sometimes™, sources_info[src] raises KeyError
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user