From 712b618ee8e98e89176202e3241c4d28ad15caac Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Mon, 1 Oct 2018 19:48:05 +0000 Subject: [PATCH] tests: Comment out test requiring "do_test" function It does not exist in the Debian version (yet?). Signed-off-by: Niels Thykier --- tests/test_autopkgtest.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/test_autopkgtest.py b/tests/test_autopkgtest.py index 5cbc8ac..358454f 100644 --- a/tests/test_autopkgtest.py +++ b/tests/test_autopkgtest.py @@ -2173,20 +2173,20 @@ class T(TestBase): 'linux': {'amd64': 'RUNNING-ALWAYSFAIL', 'i386': 'RUNNING-ALWAYSFAIL'}})})[1] self.assertNotIn('notme 1', exc['gcc-5']['policy_info']['autopkgtest']) - def test_gcc_hastest(self): - '''gcc triggers itself when it has a testsuite''' - - self.data.add('gcc-7', False, {}, testsuite='autopkgtest') - - # gcc-7 has passed before on i386 only, therefore ALWAYSFAIL on amd64 - self.swift.set_results({'autopkgtest-series': { - 'series/i386/g/gcc-7/20150101_100000@': (0, 'gcc-7 1', tr('passedbefore/1')), - }}) - - exc = self.do_test( - [('gcc-7', {'Source': 'gcc-7', 'Version': '2'}, 'autopkgtest')], - {'gcc-7': (False, {'gcc-7': {'amd64': 'RUNNING-ALWAYSFAIL', 'i386': 'RUNNING'}})})[1] - self.assertIn('gcc-7', exc['gcc-7']['policy_info']['autopkgtest']) +# def test_gcc_hastest(self): +# '''gcc triggers itself when it has a testsuite''' +# +# self.data.add('gcc-7', False, {}, testsuite='autopkgtest') +# +# # gcc-7 has passed before on i386 only, therefore ALWAYSFAIL on amd64 +# self.swift.set_results({'autopkgtest-series': { +# 'series/i386/g/gcc-7/20150101_100000@': (0, 'gcc-7 1', tr('passedbefore/1')), +# }}) +# +# exc = self.do_test( +# [('gcc-7', {'Source': 'gcc-7', 'Version': '2'}, 'autopkgtest')], +# {'gcc-7': (False, {'gcc-7': {'amd64': 'RUNNING-ALWAYSFAIL', 'i386': 'RUNNING'}})})[1] +# self.assertIn('gcc-7', exc['gcc-7']['policy_info']['autopkgtest']) def test_alternative_gcc(self): '''alternative gcc does not trigger anything'''