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 1Qbywb-0005vG-01 for garchives@archives.gentoo.org; Wed, 29 Jun 2011 17:52:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F1F5D1C0EB; Wed, 29 Jun 2011 17:52:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id BE1B11C0AA for ; Wed, 29 Jun 2011 17:52:23 +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 4A53C2AC022 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 872D58003D 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: <0fe0c4190597136b01be3700eea3c890ec1ff0c3.mgorny@gentoo> Subject: [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/library/, pmstestsuite/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: pmstestsuite/cli.py pmstestsuite/library/__init__.py X-VCS-Directories: pmstestsuite/library/ pmstestsuite/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 0fe0c4190597136b01be3700eea3c890ec1ff0c3 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: f95eb3e110ac266c7108bd89b2401173 commit: 0fe0c4190597136b01be3700eea3c890ec1ff0c3 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Wed Jun 29 17:40:31 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Wed Jun 29 17:40:31 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D0fe0c419 Support enabling thorough mode for a library. --- pmstestsuite/cli.py | 6 +++++- pmstestsuite/library/__init__.py | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pmstestsuite/cli.py b/pmstestsuite/cli.py index 707f494..4d309f8 100644 --- a/pmstestsuite/cli.py +++ b/pmstestsuite/cli.py @@ -57,6 +57,9 @@ class PMSTestSuiteCLI(object): opt.add_option('-t', '--tests', dest=3D'tests', help=3D'Limit the tests to be run (may be specified multiple times)'= , action=3D'append', default=3D[]) + opt.add_option('-T', '--thorough', dest=3D'thorough', + help=3D'Run tests thoroughly (i.e. in all possible variants)', + action=3D'store_true', default=3DFalse) =20 self.optparser =3D opt =20 @@ -99,7 +102,8 @@ class PMSTestSuiteCLI(object): opt.error('Repository open failed: %s' % e) =20 try: - self.test_library =3D load_library(opts.library_name) + self.test_library =3D load_library(opts.library_name, + thorough =3D opts.thorough) except (ImportError, TypeError) as e: opt.error('Test library load failed: %s' % e) =20 diff --git a/pmstestsuite/library/__init__.py b/pmstestsuite/library/__in= it__.py index a638b62..6499e3f 100644 --- a/pmstestsuite/library/__init__.py +++ b/pmstestsuite/library/__init__.py @@ -60,8 +60,9 @@ class TestLibrary(object): =20 return len(self.tests) =20 - def __init__(self, modname): + def __init__(self, modname, thorough =3D False): self.modname =3D modname + self.thorough =3D thorough =20 def limit_tests(self, limitations): if self.tests is not None: