Stop announcing skipped boottest attempts.

This commit is contained in:
Celso Providelo 2015-02-10 13:49:43 -05:00
parent a80a1e4f1c
commit 011aa3570e
3 changed files with 6 additions and 8 deletions

View File

@ -127,11 +127,10 @@ class BootTest(object):
This class provides an API for handling the boottest-jenkins
integration layer (mostly derived from auto-package-testing/adt):
"""
VALID_STATUSES = ('PASS', 'SKIPPED')
VALID_STATUSES = ('PASS',)
EXCUSE_LABELS = {
"PASS": '<span style="background:#87d96c">Pass</span>',
"SKIPPED": '<span style="background:#e5c545">Skipped</span>',
"FAIL": '<span style="background:#ff6666">Regression</span>',
"RUNNING": '<span style="background:#99ddff">Test in progress</span>',
}

View File

@ -1932,8 +1932,7 @@ class Britney(object):
# Only sources whitelisted in the boottest context should
# be tested (currently only sources building phone binaries).
if not boottest.needs_test(excuse.name, excuse.ver[1]):
label = BootTest.EXCUSE_LABELS.get('SKIPPED')
excuse.addhtml("Boottest result: %s" % (label))
# Silently skipping.
continue
# Okay, aggregate required boottests requests.
boottest_excuses.append(excuse)

View File

@ -352,7 +352,7 @@ args.func()
def test_skipped_not_on_phone(self):
# `Britney` updates boottesting information in excuses when the
# package was skipped and marks the package as a valid candidate for
# promotion.
# promotion, but no notice about 'boottest' is added to the excuse.
context = []
context.append(
('apache2', {'Source': 'apache2-src', 'Architecture': 'all',
@ -360,9 +360,9 @@ args.func()
self.do_test(
context,
[r'\bapache2-src\b.*\(- to .*>2.4.8-1ubuntu1<',
'<li>Boottest result: {}'.format(
boottest.BootTest.EXCUSE_LABELS['SKIPPED']),
'<li>Valid candidate'])
'<li>Valid candidate'],
['<li>Boottest result:'],
)
def test_skipped_architecture_not_allowed(self):
# `Britney` does not trigger boottests for source not yet built on