Author: jross
Date: Tue Apr 22 10:09:57 2014
New Revision: 1589068

URL: http://svn.apache.org/r1589068
Log:
QPID-5714: Skip python tests if test code is missing

Modified:
    qpid/branches/0.28/qpid/cpp/src/tests/python_tests
    qpid/branches/0.28/qpid/cpp/src/tests/swig_python_tests

Modified: qpid/branches/0.28/qpid/cpp/src/tests/python_tests
URL: 
http://svn.apache.org/viewvc/qpid/branches/0.28/qpid/cpp/src/tests/python_tests?rev=1589068&r1=1589067&r2=1589068&view=diff
==============================================================================
--- qpid/branches/0.28/qpid/cpp/src/tests/python_tests (original)
+++ qpid/branches/0.28/qpid/cpp/src/tests/python_tests Tue Apr 22 10:09:57 2014
@@ -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

Modified: qpid/branches/0.28/qpid/cpp/src/tests/swig_python_tests
URL: 
http://svn.apache.org/viewvc/qpid/branches/0.28/qpid/cpp/src/tests/swig_python_tests?rev=1589068&r1=1589067&r2=1589068&view=diff
==============================================================================
--- qpid/branches/0.28/qpid/cpp/src/tests/swig_python_tests (original)
+++ qpid/branches/0.28/qpid/cpp/src/tests/swig_python_tests Tue Apr 22 10:09:57 
2014
@@ -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"



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to