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 1Qbywl-0005xi-Dw for garchives@archives.gentoo.org; Wed, 29 Jun 2011 17:53:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B18A81C1BB; Wed, 29 Jun 2011 17:52:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 828AB1C1BB for ; Wed, 29 Jun 2011 17:52:24 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F04632AC016 for ; Wed, 29 Jun 2011 17:52:23 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id DD7F78003F for ; Wed, 29 Jun 2011 17:52:22 +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: Subject: [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/library/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: pmstestsuite/library/__init__.py pmstestsuite/library/case.py X-VCS-Directories: pmstestsuite/library/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: f35a14a1d1f8cc7e2b79fdb3ae3054f038e9d407 Date: Wed, 29 Jun 2011 17:52:22 +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: X-Archives-Hash: 8c3f5cbe073f36b372bb0177a8391eef commit: f35a14a1d1f8cc7e2b79fdb3ae3054f038e9d407 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Wed Jun 29 17:46:51 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Wed Jun 29 17:46:51 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3Df35a14a1 Actually support the thorough mode. --- pmstestsuite/library/__init__.py | 2 +- pmstestsuite/library/case.py | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/pmstestsuite/library/__init__.py b/pmstestsuite/library/__in= it__.py index 6499e3f..d65958f 100644 --- a/pmstestsuite/library/__init__.py +++ b/pmstestsuite/library/__init__.py @@ -48,7 +48,7 @@ class TestLibrary(object): modname =3D '%s.%s' % (self.modname, modname) mod =3D __import__(modname, {}, {}, [clsname], 0) cls =3D getattr(mod, clsname) - for i in cls.inst_all(): + for i in cls.inst_all(thorough =3D self.thorough): self.tests.append(i) yield i =20 diff --git a/pmstestsuite/library/case.py b/pmstestsuite/library/case.py index 3eba089..3327c33 100644 --- a/pmstestsuite/library/case.py +++ b/pmstestsuite/library/case.py @@ -149,16 +149,20 @@ class EbuildTestCase(TestCase): return (random.choice(cls._eval_prop(cls.supported_eapis)),) =20 @classmethod - def inst_all(cls): + def inst_all(cls, thorough =3D False): """ - Instantiate the test case for all relevant EAPIs. + Instantiate the test case for all relevant EAPIs. If in thorough + mode, assume all supported EAPIs are relevant. =20 Returns an iterator over a list of test case instances. """ =20 - # sadly, no @classproperty - # but property object attributes are official - for eapi in cls._eval_prop(cls.relevant_eapis): + if thorough: + eapis =3D cls.supported_eapis + else: + eapis =3D cls.relevant_eapis + + for eapi in cls._eval_prop(eapis): yield cls(eapi =3D eapi) =20 @property