From f35a14a1d1f8cc7e2b79fdb3ae3054f038e9d407 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Wed, 29 Jun 2011 19:46:51 +0200 Subject: Actually support the thorough mode. --- pmstestsuite/library/case.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'pmstestsuite/library/case.py') 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)),) @classmethod - def inst_all(cls): + def inst_all(cls, thorough = 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. Returns an iterator over a list of test case instances. """ - # sadly, no @classproperty - # but property object attributes are official - for eapi in cls._eval_prop(cls.relevant_eapis): + if thorough: + eapis = cls.supported_eapis + else: + eapis = cls.relevant_eapis + + for eapi in cls._eval_prop(eapis): yield cls(eapi = eapi) @property -- cgit v1.2.3-65-gdbad