diff options
author | Alan Conway <aconway@apache.org> | 2009-01-30 14:34:48 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-01-30 14:34:48 +0000 |
commit | 5827482775336cd49f24bba381beb6812778a622 (patch) | |
tree | a8789f3b7edd4c68d0b74ad4310ba92022a5d23b | |
parent | ad56f81b7bc286bacb399c9afa6f019427aaa1b4 (diff) | |
download | qpid-python-5827482775336cd49f24bba381beb6812778a622.tar.gz |
Correct mistake from previous commit where missing python dir causes an error rather than a warning.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@739295 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-x | qpid/cpp/src/tests/python_tests | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/qpid/cpp/src/tests/python_tests b/qpid/cpp/src/tests/python_tests index e56b91ba5c..cae1aefb4a 100755 --- a/qpid/cpp/src/tests/python_tests +++ b/qpid/cpp/src/tests/python_tests @@ -26,7 +26,9 @@ QPID_PYTHON_DIR=${QPID_PYTHON_DIR:-`dirname $0`/../../../python} SPEC=${SPEC:-0-10-errata} FAILING=${FAILING:-cpp_failing_0-10.txt} -test -d $QPID_PYTHON_DIR || { echo "WARNING: No python tests. $QPID_PYTHON_DIR not found."; exit 1; } -cd $QPID_PYTHON_DIR -./run-tests --skip-self-test -v -s $SPEC -I $FAILING -b localhost:$QPID_PORT $PYTHON_TESTS || { echo "FAIL python tests for $SPEC"; exit 1; } - +if test -d $QPID_PYTHON_DIR; then + cd $QPID_PYTHON_DIR + ./run-tests --skip-self-test -v -s $SPEC -I $FAILING -b localhost:$QPID_PORT $PYTHON_TESTS || { echo "FAIL python tests for $SPEC"; exit 1; } +else + echo "WARNING: No python tests. $QPID_PYTHON_DIR not found." +fi |