summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Ross <jross@apache.org>2014-04-24 19:55:00 +0000
committerJustin Ross <jross@apache.org>2014-04-24 19:55:00 +0000
commitc3ea11a164cbec513ceadd24eb48f2fc7fbc52ef (patch)
treef3ea8b8d1f0e5358c965b2f1fd48dea5e0bb6e6e
parenta70ea89ae9ee13d4d9153fe09f7adba9ff1494fd (diff)
downloadqpid-python-c3ea11a164cbec513ceadd24eb48f2fc7fbc52ef.tar.gz
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
-rwxr-xr-xqpid/cpp/src/tests/ha_tests.py5
1 files changed, 5 insertions, 0 deletions
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",