aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pmstestsuite/library/case.py23
1 files changed, 18 insertions, 5 deletions
diff --git a/pmstestsuite/library/case.py b/pmstestsuite/library/case.py
index 7cf4b1c..0f63735 100644
--- a/pmstestsuite/library/case.py
+++ b/pmstestsuite/library/case.py
@@ -695,9 +695,22 @@ class EbuildTestCase(TestCase):
@type pm: L{PackageManager}
"""
- merged = self.atom(pm) in pm.installed
- self.assertBool(not self.expect_failure, merged,
- 'package merged')
- self.assertBool(self.expect_started, self.dbus_started,
- 'build started')
+ exc = None
+
+ try:
+ merged = self.atom(pm) in pm.installed
+ self.assertBool(not self.expect_failure, merged,
+ 'package merged')
+ except AssertionError as e:
+ exc = e
+
+ try:
+ self.assertBool(self.expect_started, self.dbus_started,
+ 'build started')
+ except AssertionError as e:
+ exc = e
+
self.check_dbus_result(self._pop_dbus_output(), pm)
+
+ if exc is not None:
+ raise exc