summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/run_interop_tests
diff options
context:
space:
mode:
authorJustin Ross <jross@apache.org>2016-04-27 13:48:16 +0000
committerJustin Ross <jross@apache.org>2016-04-27 13:48:16 +0000
commita0c8885bb58a19fd6b192e5d393063bb26e4ec68 (patch)
tree2898fe866a6b94010c9875f1fd585065836640c9 /qpid/cpp/src/tests/run_interop_tests
parentac4dfb210ee41eb4addfcb382d8ede9c9ddd46ed (diff)
downloadqpid-python-a0c8885bb58a19fd6b192e5d393063bb26e4ec68.tar.gz
QPID-7207: Skip some tests when the swigged python client is not available
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741266 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/run_interop_tests')
-rwxr-xr-xqpid/cpp/src/tests/run_interop_tests11
1 files changed, 8 insertions, 3 deletions
diff --git a/qpid/cpp/src/tests/run_interop_tests b/qpid/cpp/src/tests/run_interop_tests
index 0a2e1425be..7507c6a99f 100755
--- a/qpid/cpp/src/tests/run_interop_tests
+++ b/qpid/cpp/src/tests/run_interop_tests
@@ -21,10 +21,15 @@
from common import *
-port = start_broker("broker", "--load-module {0}".format(AMQP_LIB))
+python_swig_module = join(BUILD_DIR, "bindings", "qpid", "python", "qpid_messaging.py")
-ENV["QPID_INTEROP_URL"] = "localhost:{0}".format(port)
+if exists(python_swig_module):
+ port = start_broker("broker", "--load-module {0}".format(AMQP_LIB))
-call("qpid-python-test -m interop_tests -DOUTDIR={0}", WORK_DIR)
+ ENV["QPID_INTEROP_URL"] = "localhost:{0}".format(port)
+
+ call("qpid-python-test -m interop_tests -DOUTDIR={0}", WORK_DIR)
+else:
+ warn("Skipping tests: 1.0 messaging client not found")
check_results()