mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-13 15:37:02 +00:00
Restore boottest status lookup by source name & version.
This commit is contained in:
parent
760d08c459
commit
c3c9005d5f
@ -208,11 +208,11 @@ class BootTest(object):
|
||||
if not (src in self.pkglist and ver in self.pkglist[src]):
|
||||
self.pkglist[src][ver] = status
|
||||
|
||||
def get_status(self, name):
|
||||
def get_status(self, name, version):
|
||||
"""Return test status for the given source name."""
|
||||
last_version = sorted(
|
||||
self.pkglist[name], cmp=apt_pkg.version_compare)[-1]
|
||||
return self.pkglist[name][last_version]
|
||||
#version = sorted(
|
||||
# self.pkglist[name], cmp=apt_pkg.version_compare)[-1]
|
||||
return self.pkglist[name][version]
|
||||
|
||||
def request(self, packages):
|
||||
"""Requests boottests for the given sources list ([(src, ver),])."""
|
||||
|
@ -1944,7 +1944,7 @@ class Britney(object):
|
||||
boottest.collect()
|
||||
# Update excuses from the boottest context.
|
||||
for excuse in boottest_excuses:
|
||||
status = boottest.get_status(excuse.name)
|
||||
status = boottest.get_status(excuse.name, excuse.ver[1])
|
||||
label = BootTest.EXCUSE_LABELS.get(status, 'UNKNOWN STATUS')
|
||||
excuse.addhtml("Boottest result: %s" % (label))
|
||||
# Allows hints to force boottest failures/attempts
|
||||
|
@ -172,7 +172,7 @@ template = """
|
||||
green 1.1~beta RUNNING
|
||||
pyqt5-src 1.1~beta PASS
|
||||
pyqt5-src 1.1 FAIL
|
||||
signon 1.0 PASS
|
||||
signon 1.1 PASS
|
||||
"""
|
||||
|
||||
def request():
|
||||
|
Loading…
x
Reference in New Issue
Block a user