public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/library/standard/, pmstestsuite/library/
Date: Thu, 11 Aug 2011 22:09:10 +0000 (UTC)	[thread overview]
Message-ID: <b52bac87315602abb8f550f5d22448ecf459724f.mgorny@gentoo> (raw)

commit:     b52bac87315602abb8f550f5d22448ecf459724f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 11 21:46:24 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Aug 11 21:46:24 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=b52bac87

Get dependency asserts before package ones.

That ordering seems more logical.

---
 pmstestsuite/library/depend_case.py        |   22 ++++++++++++++++++++--
 pmstestsuite/library/standard/dbus_case.py |    8 ++++----
 2 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/pmstestsuite/library/depend_case.py b/pmstestsuite/library/depend_case.py
index 55e49cc..0d4f8e7 100644
--- a/pmstestsuite/library/depend_case.py
+++ b/pmstestsuite/library/depend_case.py
@@ -118,8 +118,17 @@ class EbuildDependencyTestCase(BaseDependencyTestCase, EbuildTestCase):
 		return of
 
 	def check_result(self, pm):
+		try:
+			BaseDependencyTestCase.check_result(self, pm)
+		except AssertionError as e:
+			exc = e
+		else:
+			exc = None
+
 		EbuildTestCase.check_result(self, pm)
-		BaseDependencyTestCase.check_result(self, pm)
+
+		if exc is not None:
+			raise exc
 
 class EclassDependencyTestCase(BaseDependencyTestCase, EclassTestCase):
 	"""
@@ -180,5 +189,14 @@ class EclassDependencyTestCase(BaseDependencyTestCase, EclassTestCase):
 		return of
 
 	def check_result(self, pm):
+		try:
+			BaseDependencyTestCase.check_result(self, pm)
+		except AssertionError as e:
+			exc = e
+		else:
+			exc = None
+
 		EclassTestCase.check_result(self, pm)
-		BaseDependencyTestCase.check_result(self, pm)
+
+		if exc is not None:
+			raise exc

diff --git a/pmstestsuite/library/standard/dbus_case.py b/pmstestsuite/library/standard/dbus_case.py
index 7d1b46f..a76bba4 100644
--- a/pmstestsuite/library/standard/dbus_case.py
+++ b/pmstestsuite/library/standard/dbus_case.py
@@ -151,9 +151,9 @@ class DBusEbuildDependencyTestCase(DBusBaseTestCase, EbuildDependencyTestCase):
 		EbuildDependencyTestCase.check_result(self, pm)
 
 	def check_result(self, pm):
-		self.assertBool(not self.expect_failure, self.dbus_started,
-				'build started')
+		started = self.dbus_started
 		self.check_dbus_result(self._pop_dbus_output(), pm)
+		self.assertBool(not self.expect_failure, started, 'build started')
 
 class DBusEclassDependencyTestCase(DBusBaseTestCase, EclassDependencyTestCase):
 	""" D-Bus capable eclass dependency test case. """
@@ -167,6 +167,6 @@ class DBusEclassDependencyTestCase(DBusBaseTestCase, EclassDependencyTestCase):
 		EclassDependencyTestCase.check_result(self, pm)
 
 	def check_result(self, pm):
-		self.assertBool(not self.expect_failure, self.dbus_started,
-				'build started')
+		started = self.dbus_started
 		self.check_dbus_result(self._pop_dbus_output(), pm)
+		self.assertBool(not self.expect_failure, started, 'build started')



             reply	other threads:[~2011-08-11 22:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-11 22:09 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-01-02 22:26 [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/library/standard/, pmstestsuite/library/ Michał Górny
2012-01-02 22:03 Michał Górny
2011-07-18  6:32 Michał Górny
2011-06-17 15:07 [gentoo-commits] proj/pms-test-suite:master commit in: PMSTestSuite/library/standard/, PMSTestSuite/library/ Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b52bac87315602abb8f550f5d22448ecf459724f.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox