add failing test for test results from a previous version

bzr-import-20160707
Martin Pitt 11 years ago
parent d59d78f718
commit a6a086c4b5

@ -302,6 +302,17 @@ args.func()
'<li>autopkgtest for lightgreen 1: PASS',
'<li>autopkgtest for darkgreen 1: RUNNING'])
def test_result_from_older_version(self):
'''test result from older version than the uploaded one'''
self.do_test(
[('green', {'Version': '1.1~beta', 'Depends': 'libc6 (>= 0.9), libgreen1'})],
'green 1.1~alpha PASS green 1.1~beta\n',
False,
[r'\bgreen\b.*>1</a> to .*>1.1~beta<',
# it's not entirely clear what precisely it should say here
'<li>autopkgtest for green 1.1~beta: RUNNING'])
def do_test(self, unstable_add, adt_request, considered, expect=None,
no_expect=None):
for (pkg, fields) in unstable_add:

Loading…
Cancel
Save