From ae01787ce90ee7cd1303ce7769328cd242e00f6e Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 21 Mar 2007 01:26:37 +0000 Subject: * cpp-0-9: svn copy of 0-9 branch cpp, will rename to cpp on next update. * cpp-0-9/gentools: independent copy of gentools for cpp. Temporary measure till /java and /gentools are at 0-9 * python/tests_0-9: tests from 0-9 branch. * python/qpid/testlib.py: Use tests_0-9 with 0-9 spec (default is still 0-8) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@520690 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/testlib.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'python/qpid') diff --git a/python/qpid/testlib.py b/python/qpid/testlib.py index 05641bce7e..ba2dbe9fc3 100644 --- a/python/qpid/testlib.py +++ b/python/qpid/testlib.py @@ -125,7 +125,7 @@ Options: if self.use08spec(): self.tests=findmodules("tests_0-8") else: - self.tests=findmodules("tests") + self.tests=findmodules("tests_0-9") def testSuite(self): class IgnoringTestSuite(unittest.TestSuite): @@ -142,16 +142,14 @@ Options: self._parseargs(args) runner = unittest.TextTestRunner(descriptions=False, verbosity=self.verbose) - try: - result = runner.run(self.testSuite()) - except: - print "Unhandled error in test:", sys.exc_info() + result = runner.run(self.testSuite()) if (self.ignore): print "=======================================" print "NOTE: the following tests were ignored:" for t in self.ignore: print t print "=======================================" + return result.wasSuccessful() def connect(self, host=None, port=None, spec=None, user=None, password=None, tune_params=None): -- cgit v1.2.1