mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-08 09:01:36 +00:00
autopkgtest: Trigger lxc tests from linux-meta*, not linux
This is more consistent with the DKMS triggers, and will make things easier for the kernel status matrix.
This commit is contained in:
parent
b869202457
commit
6591d67c47
@ -209,8 +209,12 @@ class AutoPackageTest(object):
|
|||||||
|
|
||||||
# Hardcode linux → lxc trigger until we get a more flexible
|
# Hardcode linux → lxc trigger until we get a more flexible
|
||||||
# implementation: https://bugs.debian.org/779559
|
# implementation: https://bugs.debian.org/779559
|
||||||
if src == 'linux' and 'lxc' not in reported_pkgs:
|
if src.startswith('linux-meta') and 'lxc' not in reported_pkgs:
|
||||||
tests.append(('lxc', self.britney.sources['testing']['lxc'][VERSION]))
|
try:
|
||||||
|
tests.append(('lxc', self.britney.sources['testing']['lxc'][VERSION]))
|
||||||
|
except KeyError:
|
||||||
|
# no lxc package in that series? *shrug*, then not
|
||||||
|
pass
|
||||||
|
|
||||||
tests.sort(key=lambda s_v: s_v[0])
|
tests.sort(key=lambda s_v: s_v[0])
|
||||||
return tests
|
return tests
|
||||||
|
@ -1130,12 +1130,12 @@ fancy 1 i386 linux-meta-lts-grumpy 1
|
|||||||
def test_kernel_triggers_lxc(self):
|
def test_kernel_triggers_lxc(self):
|
||||||
'''LXC test gets triggered by kernel uploads'''
|
'''LXC test gets triggered by kernel uploads'''
|
||||||
|
|
||||||
self.data.add('lxc', False, {'Testsuite-Triggers': 'linux-libc-dev'},
|
self.data.add('lxc', False, {'Testsuite-Triggers': 'linux-generic'},
|
||||||
testsuite='autopkgtest')
|
testsuite='autopkgtest')
|
||||||
|
|
||||||
self.do_test(
|
self.do_test(
|
||||||
[('linux-libc-dev', {'Source': 'linux'}, None)],
|
[('linux-generic', {'Source': 'linux-meta'}, None)],
|
||||||
{'linux': (False, {'lxc 1': {'amd64': 'RUNNING', 'i386': 'RUNNING'}})})
|
{'linux-meta': (False, {'lxc 1': {'amd64': 'RUNNING', 'i386': 'RUNNING'}})})
|
||||||
|
|
||||||
def test_disable_adt(self):
|
def test_disable_adt(self):
|
||||||
'''Run without autopkgtest requests'''
|
'''Run without autopkgtest requests'''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user