From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Ri6fe-0001n5-3q for garchives@archives.gentoo.org; Tue, 03 Jan 2012 15:53:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03B8B21C197; Tue, 3 Jan 2012 15:52:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 9FC8821C197 for ; Tue, 3 Jan 2012 15:52:34 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 149591B4011 for ; Tue, 3 Jan 2012 15:52:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 83E4080042 for ; Tue, 3 Jan 2012 15:52:33 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <14499d0e86f67f556e2631c687eaf20e82ca9e43.mgorny@gentoo> Subject: [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/library/standard/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: pmstestsuite/library/standard/banned_commands.py pmstestsuite/library/standard/dbus_case.py pmstestsuite/library/standard/depend.py pmstestsuite/library/standard/deprecated_vars.py pmstestsuite/library/standard/doins_fail.py pmstestsuite/library/standard/eclass_depend.py pmstestsuite/library/standard/eclass_metadata.py pmstestsuite/library/standard/ext_cases.py pmstestsuite/library/standard/phase_function_order.py pmstestsuite/library/standard/special_vars.py pmstestsuite/library/standard/util.py pmstestsuite/library/standard/variable_scope.py pmstestsuite/library/standard/workdir_fallback.py X-VCS-Directories: pmstestsuite/library/standard/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 14499d0e86f67f556e2631c687eaf20e82ca9e43 Date: Tue, 3 Jan 2012 15:52:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: f09c6d70-56fa-4dc3-b0d8-e8fd638a441a X-Archives-Hash: adf7631f75bf03e6a191af80395a5c3b commit: 14499d0e86f67f556e2631c687eaf20e82ca9e43 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Tue Jan 3 12:14:20 2012 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Tue Jan 3 12:14:20 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D14499d0e Remove old dbus_case API. --- pmstestsuite/library/standard/banned_commands.py | 20 +++-----------= ------ pmstestsuite/library/standard/dbus_case.py | 20 --------------= ------ pmstestsuite/library/standard/depend.py | 20 +++++++++-----= ------ pmstestsuite/library/standard/deprecated_vars.py | 12 +++++------- pmstestsuite/library/standard/doins_fail.py | 6 +++--- pmstestsuite/library/standard/eclass_depend.py | 12 ++++++------ pmstestsuite/library/standard/eclass_metadata.py | 13 ++++--------- pmstestsuite/library/standard/ext_cases.py | 8 ++++---- .../library/standard/phase_function_order.py | 7 +++---- pmstestsuite/library/standard/special_vars.py | 13 ++++--------- pmstestsuite/library/standard/util.py | 8 ++++---- pmstestsuite/library/standard/variable_scope.py | 6 ++---- pmstestsuite/library/standard/workdir_fallback.py | 6 +++--- 13 files changed, 50 insertions(+), 101 deletions(-) diff --git a/pmstestsuite/library/standard/banned_commands.py b/pmstestsu= ite/library/standard/banned_commands.py index 216d6df..7e3de17 100644 --- a/pmstestsuite/library/standard/banned_commands.py +++ b/pmstestsuite/library/standard/banned_commands.py @@ -2,13 +2,13 @@ # (c) 2011-2012 Micha=C5=82 G=C3=B3rny # Released under the terms of the 2-clause BSD license. =20 -from .dbus_case import DBusEbuildTestCase +from pmstestsuite.library.case import EbuildTestCase =20 -class BannedCommandTest(DBusEbuildTestCase): +class BannedCommandTest(EbuildTestCase): supported_eapis =3D (range(0, 4), (4,)) =20 def __init__(self, *args, **kwargs): - DBusEbuildTestCase.__init__(self, *args, **kwargs) + EbuildTestCase.__init__(self, *args, **kwargs) self._path =3D '/tmp/pms-test-suite-%d' % id(self) self.phase_funcs['src_install'].extend([ '{ echo > foo; } || die', @@ -32,13 +32,6 @@ class DoHardCommandTest(BannedCommandTest): =20 def check_dbus_result(self, output, pm): try: - BannedCommandTest.check_dbus_result(self, output, pm) - except AssertionError as e: - exc =3D e - else: - exc =3D None - - try: res =3D True if output[0] =3D=3D '0' else False except IndexError: res =3D None @@ -77,13 +70,6 @@ class DoSedCommandTest(BannedCommandTest): =20 def check_dbus_result(self, output, pm): try: - BannedCommandTest.check_dbus_result(self, output, pm) - except AssertionError as e: - exc =3D e - else: - exc =3D None - - try: res =3D output[0].strip() except IndexError: res =3D None diff --git a/pmstestsuite/library/standard/dbus_case.py b/pmstestsuite/li= brary/standard/dbus_case.py deleted file mode 100644 index 14258b7..0000000 --- a/pmstestsuite/library/standard/dbus_case.py +++ /dev/null @@ -1,20 +0,0 @@ -# vim:fileencoding=3Dutf-8 -# (c) 2011-2012 Micha=C5=82 G=C3=B3rny -# Released under the terms of the 2-clause BSD license. - -from pmstestsuite.library.case import EbuildTestCase -from pmstestsuite.library.depend_case import EbuildDependencyTestCase, \ - EclassDependencyTestCase -from pmstestsuite.library.eclass_case import EclassTestCase - -class DBusEbuildTestCase(EbuildTestCase): - pass - -class DBusEclassTestCase(EclassTestCase): - pass - -class DBusEbuildDependencyTestCase(EbuildDependencyTestCase): - pass - -class DBusEclassDependencyTestCase(EclassDependencyTestCase): - pass diff --git a/pmstestsuite/library/standard/depend.py b/pmstestsuite/libra= ry/standard/depend.py index f95f090..843229c 100644 --- a/pmstestsuite/library/standard/depend.py +++ b/pmstestsuite/library/standard/depend.py @@ -2,46 +2,44 @@ # (c) 2011-2012 Micha=C5=82 G=C3=B3rny # Released under the terms of the 2-clause BSD license. =20 -from .dbus_case import DBusEbuildDependencyTestCase +from pmstestsuite.library.depend_case import EbuildDependencyTestCase from .util import EbuildToucher, FailingEbuild =20 -class DependTest(DBusEbuildDependencyTestCase): +class DependTest(EbuildDependencyTestCase): """ DEPEND fulfilling test. """ =20 depend_classes =3D [EbuildToucher] =20 def __init__(self, *args, **kwargs): - DBusEbuildDependencyTestCase.__init__(self, *args, **kwargs) + EbuildDependencyTestCase.__init__(self, *args, **kwargs) self.phase_funcs['src_compile'].append( 'pms-test-suite-%s || die' % self.dependant_ebuilds[0].pv ) =20 -class RDependTest(DBusEbuildDependencyTestCase): +class RDependTest(EbuildDependencyTestCase): """ RDEPEND fulfilling test. """ =20 rdepend_classes =3D [EbuildToucher] =20 def __init__(self, *args, **kwargs): - DBusEbuildDependencyTestCase.__init__(self, *args, **kwargs) + EbuildDependencyTestCase.__init__(self, *args, **kwargs) self.phase_funcs['pkg_postinst'].append( 'pms-test-suite-%s || die' % self.dependant_ebuilds[0].pv ) =20 -class PDependTest(DBusEbuildDependencyTestCase): +class PDependTest(EbuildDependencyTestCase): """ PDEPEND fulfilling test. """ =20 pdepend_classes =3D [EbuildToucher] =20 def __init__(self, *args, **kwargs): - DBusEbuildDependencyTestCase.__init__(self, *args, **kwargs) + EbuildDependencyTestCase.__init__(self, *args, **kwargs) self.phase_funcs['pkg_postinst'].extend([ 'pms-test-suite-%s' % self.dependant_ebuilds[0].pv, 'pms-test_dbus_append_result ${?}' ]) =20 def check_dbus_result(self, output, pm): - DBusEbuildDependencyTestCase.check_dbus_result(self, output, pm) - try: res =3D output[0] =3D=3D '0' except IndexError: @@ -49,13 +47,13 @@ class PDependTest(DBusEbuildDependencyTestCase): self.assertFalse(res, 'PDEP merged before ebuild', undefined =3D True) =20 -class FailingDependTest(DBusEbuildDependencyTestCase): +class FailingDependTest(EbuildDependencyTestCase): """ Unfulfilled DEPEND test. """ =20 depend_classes =3D [FailingEbuild] expect_failure =3D True =20 -class FailingRDependTest(DBusEbuildDependencyTestCase): +class FailingRDependTest(EbuildDependencyTestCase): """ Unfulfilled RDEPEND test. """ =20 depend_classes =3D [FailingEbuild] diff --git a/pmstestsuite/library/standard/deprecated_vars.py b/pmstestsu= ite/library/standard/deprecated_vars.py index 14d1bd6..a4a4a6b 100644 --- a/pmstestsuite/library/standard/deprecated_vars.py +++ b/pmstestsuite/library/standard/deprecated_vars.py @@ -4,10 +4,10 @@ =20 import os.path =20 -from .dbus_case import DBusEbuildTestCase -from .ext_cases import DBusFetchingEbuildTestCase +from pmstestsuite.library.case import EbuildTestCase +from .ext_cases import FetchingEbuildTestCase =20 -class AATest(DBusFetchingEbuildTestCase): +class AATest(FetchingEbuildTestCase): """ Test whether AA is declared. """ =20 supported_eapis =3D (range(0, 4), (4,)) @@ -21,7 +21,7 @@ class AATest(DBusFetchingEbuildTestCase): } =20 def __init__(self, *args, **kwargs): - DBusFetchingEbuildTestCase.__init__(self, *args, **kwargs) + FetchingEbuildTestCase.__init__(self, *args, **kwargs) self._expect_fn =3D os.path.split(self.ebuild_vars['SRC_URI'])[1] self.ebuild_vars['SRC_URI'] =3D 'pms_tests_magical_hidden_use? ( %s )'= \ % self.ebuild_vars['SRC_URI'] @@ -32,10 +32,9 @@ class AATest(DBusFetchingEbuildTestCase): else: expect =3D '' =20 - DBusEbuildTestCase.check_dbus_result(self, output, pm) self.assertEqual(output[0], expect, '${AA}') =20 -class KVTest(DBusEbuildTestCase): +class KVTest(EbuildTestCase): """ Test whether KV is declared. """ =20 supported_eapis =3D (range(0, 4), (4,)) @@ -46,7 +45,6 @@ class KVTest(DBusEbuildTestCase): } =20 def check_dbus_result(self, output, pm): - DBusEbuildTestCase.check_dbus_result(self, output, pm) func =3D self.assertEqual if self.eapi =3D=3D 4 \ else self.assertNotEqual func(output[0], '', '${KV}') diff --git a/pmstestsuite/library/standard/doins_fail.py b/pmstestsuite/l= ibrary/standard/doins_fail.py index a965377..0088fe6 100644 --- a/pmstestsuite/library/standard/doins_fail.py +++ b/pmstestsuite/library/standard/doins_fail.py @@ -2,9 +2,9 @@ # (c) 2011 Micha=C5=82 G=C3=B3rny # Released under the terms of the 2-clause BSD license. =20 -from .dbus_case import DBusEbuildTestCase +from pmstestsuite.library.case import EbuildTestCase =20 -class DoInsFailureTest(DBusEbuildTestCase): +class DoInsFailureTest(EbuildTestCase): """ doins() failure handling test. """ =20 supported_eapis =3D (range(0, 4), (4,)) @@ -17,5 +17,5 @@ class DoInsFailureTest(DBusEbuildTestCase): } =20 def __init__(self, *args, **kwargs): - DBusEbuildTestCase.__init__(self, *args, **kwargs) + EbuildTestCase.__init__(self, *args, **kwargs) self.expect_failure =3D (self.eapi =3D=3D 4) diff --git a/pmstestsuite/library/standard/eclass_depend.py b/pmstestsuit= e/library/standard/eclass_depend.py index 8812fb0..8f98ca5 100644 --- a/pmstestsuite/library/standard/eclass_depend.py +++ b/pmstestsuite/library/standard/eclass_depend.py @@ -2,10 +2,10 @@ # (c) 2011 Micha=C5=82 G=C3=B3rny # Released under the terms of the 2-clause BSD license. =20 -from .dbus_case import DBusEclassDependencyTestCase +from pmstestsuite.library.case import EbuildTestCase from .util import EbuildToucher =20 -class DependInheritanceTest(DBusEclassDependencyTestCase): +class DependInheritanceTest(EclassDependencyTestCase): """ DEPEND variable inheritance test. """ =20 depend_classes =3D [EbuildToucher] @@ -13,13 +13,13 @@ class DependInheritanceTest(DBusEclassDependencyTestC= ase): eclass_contents =3D '' =20 def __init__(self, *args, **kwargs): - DBusEclassDependencyTestCase.__init__(self, *args, **kwargs) + EclassDependencyTestCase.__init__(self, *args, **kwargs) self.phase_funcs['src_compile'].extend(( 'pms-test-suite-%s || die' % self.dependant_ebuilds[0].pv, 'pms-test-suite-%s || die' % self.dependant_ebuilds[1].pv )) =20 -class RDependInheritanceTest(DBusEclassDependencyTestCase): +class RDependInheritanceTest(EclassDependencyTestCase): """ RDEPEND variable inheritance test. """ =20 rdepend_classes =3D [EbuildToucher] @@ -27,13 +27,13 @@ class RDependInheritanceTest(DBusEclassDependencyTest= Case): eclass_contents =3D '' =20 def __init__(self, *args, **kwargs): - DBusEclassDependencyTestCase.__init__(self, *args, **kwargs) + EclassDependencyTestCase.__init__(self, *args, **kwargs) self.phase_funcs['pkg_postinst'].extend(( 'pms-test-suite-%s || die' % self.dependant_ebuilds[0].pv, 'pms-test-suite-%s || die' % self.dependant_ebuilds[1].pv )) =20 -class PDependInheritanceTest(DBusEclassDependencyTestCase): +class PDependInheritanceTest(EclassDependencyTestCase): """ PDEPEND variable inheritance test. """ =20 pdepend_classes =3D [EbuildToucher] diff --git a/pmstestsuite/library/standard/eclass_metadata.py b/pmstestsu= ite/library/standard/eclass_metadata.py index d7b6cf6..18a4686 100644 --- a/pmstestsuite/library/standard/eclass_metadata.py +++ b/pmstestsuite/library/standard/eclass_metadata.py @@ -4,9 +4,9 @@ =20 from abc import abstractproperty =20 -from .dbus_case import DBusEclassTestCase +from pmstestsuite.library.case import EclassTestCase =20 -class VariableInheritanceTest(DBusEclassTestCase): +class VariableInheritanceTest(EclassTestCase): """ Eclass variable inheritance test. """ =20 @abstractproperty @@ -29,7 +29,7 @@ class VariableInheritanceTest(DBusEclassTestCase): return '%s=3D%s\n' % (self.var_name, repr(self.var_eclass_value)) =20 def __init__(self, *args, **kwargs): - DBusEclassTestCase.__init__(self, *args, **kwargs) + EclassTestCase.__init__(self, *args, **kwargs) self.ebuild_vars[self.var_name] =3D self.var_ebuild_value =20 class IUseInheritanceTest(VariableInheritanceTest): @@ -40,16 +40,13 @@ class IUseInheritanceTest(VariableInheritanceTest): var_ebuild_value =3D 'bar' =20 def check_dbus_result(self, output, pm): - # ensure it got installed first - DBusEclassTestCase.check_dbus_result(self, output, pm) - spl =3D pm.installed[self.atom(pm)].use self.assertContains(self.var_eclass_value, spl, 'IUSE (eclass)') self.assertContains(self.var_ebuild_value, spl, 'IUSE (ebuild)') =20 # XXX: REQUIRED_USE =20 -class EclassDefinedPhasesTest(DBusEclassTestCase): +class EclassDefinedPhasesTest(EclassTestCase): """ Check whether eclasses set DEFINED_PHASES as well. """ =20 supported_eapis =3D ((4,),) @@ -70,8 +67,6 @@ EXPORT_FUNCTIONS src_compile ''' % self.pn =20 def check_dbus_result(self, output, pm): - DBusEclassTestCase.check_dbus_result(self, output, pm) - phases =3D pm.installed[self.atom(pm)].defined_phases self.assertContains('compile', phases, 'DEFINED_PHASES (eclass)') self.assertContains('install', phases, 'DEFINED_PHASES (ebuild)') diff --git a/pmstestsuite/library/standard/ext_cases.py b/pmstestsuite/li= brary/standard/ext_cases.py index 94a93cc..8fcbf12 100644 --- a/pmstestsuite/library/standard/ext_cases.py +++ b/pmstestsuite/library/standard/ext_cases.py @@ -2,16 +2,16 @@ # (c) 2011 Micha=C5=82 G=C3=B3rny # Released under the terms of the 2-clause BSD license. =20 -from .dbus_case import DBusEbuildTestCase +from pmstestsuite.library.case import EbuildTestCase =20 -class DBusFetchingEbuildTestCase(DBusEbuildTestCase): +class FetchingEbuildTestCase(EbuildTestCase): """ - A DBusEbuildTestCase variant with a standarized way of fetching + A EbuildTestCase variant with a standarized way of fetching sources -- to decrease {${DISTDIR}} pollution. """ =20 def __init__(self, *args, **kwargs): - DBusEbuildTestCase.__init__(self, *args, **kwargs) + EbuildTestCase.__init__(self, *args, **kwargs) val =3D 'http://dev.gentoo.org/~mgorny/pmsts-temp.bin' if 'SRC_URI' in self.ebuild_vars: val =3D '%s %s' % (self.ebuild_vars['SRC_URI'], val) diff --git a/pmstestsuite/library/standard/phase_function_order.py b/pmst= estsuite/library/standard/phase_function_order.py index a9f24ac..12a2234 100644 --- a/pmstestsuite/library/standard/phase_function_order.py +++ b/pmstestsuite/library/standard/phase_function_order.py @@ -2,15 +2,15 @@ # (c) 2011-2012 Micha=C5=82 G=C3=B3rny # Released under the terms of the 2-clause BSD license. =20 -from .dbus_case import DBusEbuildTestCase +from pmstestsuite.library.case import EbuildTestCase =20 -class PhaseFunctionOrderTest(DBusEbuildTestCase): +class PhaseFunctionOrderTest(EbuildTestCase): """ Phase function execution order test. """ =20 supported_eapis =3D ((0, 1), (2, 3), (4,)) =20 def __init__(self, *args, **kwargs): - DBusEbuildTestCase.__init__(self, *args, **kwargs) + EbuildTestCase.__init__(self, *args, **kwargs) for k, lines in self.phase_funcs.items(): lines.append('pms-test_dbus_append_result %s' % k) =20 @@ -24,5 +24,4 @@ class PhaseFunctionOrderTest(DBusEbuildTestCase): expect.extend(['src_prepare', 'src_configure']) expect.extend(['src_compile', 'src_install', 'pkg_preinst', 'pkg_posti= nst']) =20 - DBusEbuildTestCase.check_dbus_result(self, output, pm) self.assertEqual(output, expect, 'Executed phases') diff --git a/pmstestsuite/library/standard/special_vars.py b/pmstestsuite= /library/standard/special_vars.py index 8283a60..acbfd32 100644 --- a/pmstestsuite/library/standard/special_vars.py +++ b/pmstestsuite/library/standard/special_vars.py @@ -2,9 +2,9 @@ # (c) 2011-2012 Micha=C5=82 G=C3=B3rny # Released under the terms of the 2-clause BSD license. =20 -from .dbus_case import DBusEbuildTestCase +from pmstestsuite.library.case import EbuildTestCase =20 -class InheritedVariableTest(DBusEbuildTestCase): +class InheritedVariableTest(EbuildTestCase): """ INHERITED variable definition test. """ =20 phase_funcs =3D { @@ -14,11 +14,10 @@ class InheritedVariableTest(DBusEbuildTestCase): } =20 def check_dbus_result(self, output, pm): - DBusEbuildTestCase.check_dbus_result(self, output, pm) inherits =3D output[0].split() self.assertContains('pms-test', inherits, 'INHERITED') =20 -class RDependFallbackTest(DBusEbuildTestCase): +class RDependFallbackTest(EbuildTestCase): """ Test whether RDEPEND=3D${DEPEND} fallback works as expected. """ =20 supported_eapis =3D (range(0, 4), (4,)) @@ -28,8 +27,6 @@ class RDependFallbackTest(DBusEbuildTestCase): } =20 def check_dbus_result(self, output, pm): - DBusEbuildTestCase.check_dbus_result(self, output, pm) - class DepMatcher(object): def __eq__(self, other): return other.key =3D=3D str(self) @@ -50,7 +47,7 @@ class RDependFallbackTest(DBusEbuildTestCase): else: self.assertContains(mydep, rdep, 'RDEPEND') =20 -class DefinedPhasesTest(DBusEbuildTestCase): +class DefinedPhasesTest(EbuildTestCase): """ Test whether DEFINED_PHASES are declared in EAPI 4. """ =20 supported_eapis =3D ((4,),) @@ -61,7 +58,5 @@ class DefinedPhasesTest(DBusEbuildTestCase): } =20 def check_dbus_result(self, output, pm): - DBusEbuildTestCase.check_dbus_result(self, output, pm) - phases =3D pm.installed[self.atom(pm)].defined_phases self.assertEqual(tuple(phases), ('setup',), 'DEFINED_PHASES') diff --git a/pmstestsuite/library/standard/util.py b/pmstestsuite/library= /standard/util.py index 0bee1b5..37e44f8 100644 --- a/pmstestsuite/library/standard/util.py +++ b/pmstestsuite/library/standard/util.py @@ -2,9 +2,9 @@ # (c) 2011 Micha=C5=82 G=C3=B3rny # Released under the terms of the 2-clause BSD license. =20 -from .dbus_case import DBusEbuildTestCase +from pmstestsuite.library.case import EbuildTestCase =20 -class EbuildToucher(DBusEbuildTestCase): +class EbuildToucher(EbuildTestCase): """ Touched file installer (for dependency tests). """ =20 @property @@ -12,7 +12,7 @@ class EbuildToucher(DBusEbuildTestCase): return id(self) =20 def __init__(self, *args, **kwargs): - DBusEbuildTestCase.__init__(self, *args, **kwargs) + EbuildTestCase.__init__(self, *args, **kwargs) self.phase_funcs['src_unpack'].append( '''cat >> mytrue.sh <<_EOF_ #!/bin/sh @@ -23,7 +23,7 @@ _EOF_''' 'newbin mytrue.sh pms-test-suite-%s || die' % self.pv ) =20 -class FailingEbuild(DBusEbuildTestCase): +class FailingEbuild(EbuildTestCase): """ A failing ebuild. """ =20 phase_funcs =3D { diff --git a/pmstestsuite/library/standard/variable_scope.py b/pmstestsui= te/library/standard/variable_scope.py index bee1d7e..614f6ee 100644 --- a/pmstestsuite/library/standard/variable_scope.py +++ b/pmstestsuite/library/standard/variable_scope.py @@ -4,9 +4,9 @@ =20 import re =20 -from .dbus_case import DBusEbuildTestCase +from pmstestsuite.library.case import EbuildTestCase =20 -class VariableScopeTest(DBusEbuildTestCase): +class VariableScopeTest(EbuildTestCase): """ A test for scoping of variables. """ =20 ebuild_vars =3D { @@ -70,5 +70,3 @@ class VariableScopeTest(DBusEbuildTestCase): =20 for var, regexp in zip(output, matches): self.assertEqual(var, regexp, regexp.name) - - return DBusEbuildTestCase.check_dbus_result(self, output, pm) diff --git a/pmstestsuite/library/standard/workdir_fallback.py b/pmstests= uite/library/standard/workdir_fallback.py index 04ce281..6416ac6 100644 --- a/pmstestsuite/library/standard/workdir_fallback.py +++ b/pmstestsuite/library/standard/workdir_fallback.py @@ -2,9 +2,9 @@ # (c) 2011 Micha=C5=82 G=C3=B3rny # Released under the terms of the 2-clause BSD license. =20 -from .ext_cases import DBusFetchingEbuildTestCase +from .ext_cases import FetchingEbuildTestCase =20 -class WorkdirFallbackTest(DBusFetchingEbuildTestCase): +class WorkdirFallbackTest(FetchingEbuildTestCase): """ S=3D${WORKDIR} fallback test. """ =20 supported_eapis =3D (range(0, 4), (4,)) @@ -27,5 +27,5 @@ class WorkdirFallbackTest(DBusFetchingEbuildTestCase): } =20 def __init__(self, *args, **kwargs): - DBusFetchingEbuildTestCase.__init__(self, *args, **kwargs) + FetchingEbuildTestCase.__init__(self, *args, **kwargs) self.expect_failure =3D (self.eapi =3D=3D 4)