From c3ea11a164cbec513ceadd24eb48f2fc7fbc52ef Mon Sep 17 00:00:00 2001 From: Justin Ross Date: Thu, 24 Apr 2014 19:55:00 +0000 Subject: QPID-5714: In ha_tests, skip if the target test code is missing git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.28@1589856 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/ha_tests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qpid/cpp/src/tests') diff --git a/qpid/cpp/src/tests/ha_tests.py b/qpid/cpp/src/tests/ha_tests.py index f22e12a355..295b554e3a 100755 --- a/qpid/cpp/src/tests/ha_tests.py +++ b/qpid/cpp/src/tests/ha_tests.py @@ -1543,6 +1543,11 @@ class TransactionTests(HaBrokerTest): for s in sessions: s.connection.close() def test_broker_tx_tests(self): + try: + import qpid_tests.broker_0_10 + except ImportError: + raise Skipped("Tests not found") + cluster = HaCluster(self, 3) print "Running python broker tx tests" p = subprocess.Popen(["qpid-python-test", -- cgit v1.2.1