From a6a086c4b51abcaba798034dcb7cf4d506ab875e Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 19 Feb 2014 17:25:19 -0800 Subject: [PATCH] add failing test for test results from a previous version --- tests/autopkgtest.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/autopkgtest.py b/tests/autopkgtest.py index 5d85dc7..d213d0b 100755 --- a/tests/autopkgtest.py +++ b/tests/autopkgtest.py @@ -302,6 +302,17 @@ args.func() '
  • autopkgtest for lightgreen 1: PASS', '
  • 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 to .*>1.1~beta<', + # it's not entirely clear what precisely it should say here + '
  • 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: