From 5827482775336cd49f24bba381beb6812778a622 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 30 Jan 2009 14:34:48 +0000 Subject: 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 --- qpid/cpp/src/tests/python_tests | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'qpid/cpp/src/tests/python_tests') 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 -- cgit v1.2.1