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 1QQk46-00026e-Nc for garchives@archives.gentoo.org; Sun, 29 May 2011 17:46:14 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD7971C046; Sun, 29 May 2011 17:46:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A065D1C046 for ; Sun, 29 May 2011 17:46:06 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3D3B22AC051 for ; Sun, 29 May 2011 17:46:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id A19318050A for ; Sun, 29 May 2011 17:46:05 +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: <59950b49e9d07a640c7b5a66e3644c1816be675b.mgorny@gentoo> Subject: [gentoo-commits] proj/pms-test-suite:master commit in: PMSTestSuite/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: PMSTestSuite/cli.py X-VCS-Directories: PMSTestSuite/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 59950b49e9d07a640c7b5a66e3644c1816be675b Date: Sun, 29 May 2011 17:46:05 +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: ce59ca402adf9da7ed7c8e81a70afa57 commit: 59950b49e9d07a640c7b5a66e3644c1816be675b Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Sun May 29 17:36:28 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Sun May 29 17:36:28 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3D59950b49 PMSTestSuiteCLI: fix error reporting. --- PMSTestSuite/cli.py | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/PMSTestSuite/cli.py b/PMSTestSuite/cli.py index a7856d4..a0d957c 100644 --- a/PMSTestSuite/cli.py +++ b/PMSTestSuite/cli.py @@ -75,11 +75,9 @@ class PMSTestSuiteCLI(object): try: self.repository =3D EbuildRepository(opts.repo_path) except (OSError, IOError, ValueError) as e: - print('Repository open failed: %s' % e) - return 1 + opt.error('Repository open failed: %s' % e) =20 try: self.test_library =3D load_library(opts.library_name) except (ImportError, TypeError) as e: - print('Test library load failed: %s' % e) - return 1 + opt.error('Test library load failed: %s' % e)