From e7b1c6fe256b8389bc35db6801a2f814e6ee4530 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 29 Mar 2016 14:50:42 +0200 Subject: [PATCH] tests: Verify that "Not considered" or "Valid candidate" appears in excuses --- tests/test_autopkgtest.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_autopkgtest.py b/tests/test_autopkgtest.py index b78da72..235b774 100755 --- a/tests/test_autopkgtest.py +++ b/tests/test_autopkgtest.py @@ -185,7 +185,8 @@ class T(TestBase): exc = self.do_test( [('darkgreen', {'Version': '2'}, 'autopkgtest')], {'darkgreen': (True, {'darkgreen 2': {'i386': 'RUNNING-ALWAYSFAIL', - 'amd64': 'RUNNING-ALWAYSFAIL'}})} + 'amd64': 'RUNNING-ALWAYSFAIL'}})}, + {'darkgreen': [('excuses', 'Valid candidate')]} )[1] # the test should still be triggered though @@ -230,7 +231,8 @@ class T(TestBase): 'darkgreen 1': {'amd64': 'RUNNING-ALWAYSFAIL', 'i386': 'RUNNING-ALWAYSFAIL'}, }) }, - {'green': [('old-version', '1'), ('new-version', '2')]}) + {'green': [('old-version', '1'), ('new-version', '2'), + ('excuses', 'Not considered')]}) # we expect the package's and its reverse dependencies' tests to get # triggered