1 |
commit: 6b0b371c056d926103bff2759e3e633aae778217 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 3 12:11:20 2012 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 3 12:11:20 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=6b0b371c |
7 |
|
8 |
Proceed with output checks even if test fails to merge. |
9 |
|
10 |
--- |
11 |
pmstestsuite/library/case.py | 23 ++++++++++++++++++----- |
12 |
1 files changed, 18 insertions(+), 5 deletions(-) |
13 |
|
14 |
diff --git a/pmstestsuite/library/case.py b/pmstestsuite/library/case.py |
15 |
index 7cf4b1c..0f63735 100644 |
16 |
--- a/pmstestsuite/library/case.py |
17 |
+++ b/pmstestsuite/library/case.py |
18 |
@@ -695,9 +695,22 @@ class EbuildTestCase(TestCase): |
19 |
@type pm: L{PackageManager} |
20 |
""" |
21 |
|
22 |
- merged = self.atom(pm) in pm.installed |
23 |
- self.assertBool(not self.expect_failure, merged, |
24 |
- 'package merged') |
25 |
- self.assertBool(self.expect_started, self.dbus_started, |
26 |
- 'build started') |
27 |
+ exc = None |
28 |
+ |
29 |
+ try: |
30 |
+ merged = self.atom(pm) in pm.installed |
31 |
+ self.assertBool(not self.expect_failure, merged, |
32 |
+ 'package merged') |
33 |
+ except AssertionError as e: |
34 |
+ exc = e |
35 |
+ |
36 |
+ try: |
37 |
+ self.assertBool(self.expect_started, self.dbus_started, |
38 |
+ 'build started') |
39 |
+ except AssertionError as e: |
40 |
+ exc = e |
41 |
+ |
42 |
self.check_dbus_result(self._pop_dbus_output(), pm) |
43 |
+ |
44 |
+ if exc is not None: |
45 |
+ raise exc |