1 |
commit: 59950b49e9d07a640c7b5a66e3644c1816be675b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 29 17:36:28 2011 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 29 17:36:28 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=59950b49 |
7 |
|
8 |
PMSTestSuiteCLI: fix error reporting. |
9 |
|
10 |
--- |
11 |
PMSTestSuite/cli.py | 6 ++---- |
12 |
1 files changed, 2 insertions(+), 4 deletions(-) |
13 |
|
14 |
diff --git a/PMSTestSuite/cli.py b/PMSTestSuite/cli.py |
15 |
index a7856d4..a0d957c 100644 |
16 |
--- a/PMSTestSuite/cli.py |
17 |
+++ b/PMSTestSuite/cli.py |
18 |
@@ -75,11 +75,9 @@ class PMSTestSuiteCLI(object): |
19 |
try: |
20 |
self.repository = EbuildRepository(opts.repo_path) |
21 |
except (OSError, IOError, ValueError) as e: |
22 |
- print('Repository open failed: %s' % e) |
23 |
- return 1 |
24 |
+ opt.error('Repository open failed: %s' % e) |
25 |
|
26 |
try: |
27 |
self.test_library = load_library(opts.library_name) |
28 |
except (ImportError, TypeError) as e: |
29 |
- print('Test library load failed: %s' % e) |
30 |
- return 1 |
31 |
+ opt.error('Test library load failed: %s' % e) |