mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-04-16 13:41:12 +00:00
policies: fix traceback when trying to run riscv64 autopkgtests
This commit is contained in:
parent
a2307eb84a
commit
58cbc2a49b
@ -842,8 +842,12 @@ class AutopkgtestPolicy(BasePolicy):
|
||||
break
|
||||
|
||||
# Filter tests to main packages on riscv64
|
||||
if arch == "riscv64":
|
||||
tests = [(src, version) for (src, version) in tests if sources_info[src].component == "main"]
|
||||
try:
|
||||
# Filter tests to main packages on riscv64
|
||||
if arch == "riscv64":
|
||||
tests = [(src, version) for (src, version) in tests if sources_info[src].component == "main"]
|
||||
except KeyError: # Sometimes™, sources_info[src] raises KeyError
|
||||
pass
|
||||
|
||||
tests.sort(key=lambda s_v: s_v[0])
|
||||
return tests
|
||||
|
Loading…
x
Reference in New Issue
Block a user