mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-13 11:31:38 +00:00
Add test for version that is newer in testing
This commit is contained in:
parent
e7b1c6fe25
commit
f4ca9d9775
@ -1268,6 +1268,23 @@ class T(TestBase):
|
|||||||
},
|
},
|
||||||
{'green': [('old-version', '1'), ('new-version', '2')]})
|
{'green': [('old-version', '1'), ('new-version', '2')]})
|
||||||
|
|
||||||
|
def test_newer_version_in_testing(self):
|
||||||
|
'''Testing version is newer than in unstable'''
|
||||||
|
|
||||||
|
exc = self.do_test(
|
||||||
|
[('lightgreen', {'Version': '0.9~beta'}, 'autopkgtest')],
|
||||||
|
{'lightgreen': (False, {})},
|
||||||
|
{'lightgreen': [('old-version', '1'), ('new-version', '0.9~beta'),
|
||||||
|
('reason', 'newerintesting'),
|
||||||
|
('excuses', 'ALERT: lightgreen is newer in testing (1 0.9~beta)')
|
||||||
|
]
|
||||||
|
})[1]
|
||||||
|
|
||||||
|
# autopkgtest should not be triggered
|
||||||
|
self.assertEqual(exc['lightgreen']['tests'], {})
|
||||||
|
self.assertEqual(self.pending_requests, {})
|
||||||
|
self.assertEqual(self.amqp_requests, set())
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
# Tests for hint processing
|
# Tests for hint processing
|
||||||
################################################################
|
################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user