diff options
author | Michał Górny <mgorny@gentoo.org> | 2012-01-03 13:11:20 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2012-01-03 13:11:20 +0100 |
commit | 6b0b371c056d926103bff2759e3e633aae778217 (patch) | |
tree | 4890a0ae5001c63b75aa800bb0ca4e98efe698f2 /pmstestsuite | |
parent | Fix CLI output exit status. (diff) | |
download | pms-test-suite-6b0b371c056d926103bff2759e3e633aae778217.tar.gz pms-test-suite-6b0b371c056d926103bff2759e3e633aae778217.tar.bz2 pms-test-suite-6b0b371c056d926103bff2759e3e633aae778217.zip |
Proceed with output checks even if test fails to merge.
Diffstat (limited to 'pmstestsuite')
-rw-r--r-- | pmstestsuite/library/case.py | 23 |
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 |