diff options
| author | Justin Ross <jross@apache.org> | 2014-04-22 10:09:57 +0000 |
|---|---|---|
| committer | Justin Ross <jross@apache.org> | 2014-04-22 10:09:57 +0000 |
| commit | add1afc74e5055eece36b8a523ffd4db54b1863e (patch) | |
| tree | af67ab8f9735f5006f9ea8edab0814eb0a76010d /qpid | |
| parent | 4c40539b8b820306a8bcb10afc9c3ae8bed498d6 (diff) | |
| download | qpid-python-add1afc74e5055eece36b8a523ffd4db54b1863e.tar.gz | |
QPID-5714: Skip python tests if test code is missing
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/0.28@1589068 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid')
| -rwxr-xr-x | qpid/cpp/src/tests/python_tests | 5 | ||||
| -rwxr-xr-x | qpid/cpp/src/tests/swig_python_tests | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/python_tests b/qpid/cpp/src/tests/python_tests index babe93c163..a36839a43c 100755 --- a/qpid/cpp/src/tests/python_tests +++ b/qpid/cpp/src/tests/python_tests @@ -26,4 +26,9 @@ QPID_PORT=${QPID_PORT:-5672} PYTHON_TESTS=${PYTHON_TESTS:-$*} FAILING=${FAILING:-/dev/null} +if [ ! -d $QPID_TESTS ]; then + echo "SKIPPED python tests: test code not found" + exit 0 +fi + python $QPID_PYTHON_TEST -m qpid_tests.broker_0_10 -m qpid.tests -b localhost:$QPID_PORT -I $FAILING $PYTHON_TESTS || exit 1 diff --git a/qpid/cpp/src/tests/swig_python_tests b/qpid/cpp/src/tests/swig_python_tests index 6de10f5ae9..4d9e5e35d4 100755 --- a/qpid/cpp/src/tests/swig_python_tests +++ b/qpid/cpp/src/tests/swig_python_tests @@ -47,6 +47,7 @@ stop_broker() { } test -f $PYTHONSWIGMODULE || skip "no swigged python client" +test -d $QPID_TESTS || skip "test code not found" start_broker echo "Running swigged python tests using broker on port $QPID_PORT" |
