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 | a74a06df1f2dddc5c58e33b7a7290c712510e941 (patch) | |
tree | 159cc3c16e743d512d71026ec693d4667ebaac11 /cpp/src/tests/python_tests | |
parent | 92578017571db0d7a739a1d239cb590c4410124b (diff) | |
download | qpid-python-a74a06df1f2dddc5c58e33b7a7290c712510e941.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/qpid@739295 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/python_tests')
-rwxr-xr-x | cpp/src/tests/python_tests | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpp/src/tests/python_tests b/cpp/src/tests/python_tests index e56b91ba5c..cae1aefb4a 100755 --- a/cpp/src/tests/python_tests +++ b/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 |