diff options
author | Gordon Sim <gsim@apache.org> | 2008-10-28 10:02:39 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-10-28 10:02:39 +0000 |
commit | 322474b2c6583e0ea719c8b2fadd045c86801ef1 (patch) | |
tree | b9b794be39d7df3986ef446f58cb811c00f3152a /cpp/src | |
parent | 6c7a23b5ad702c3fff5902a8da55e46631fcb55b (diff) | |
download | qpid-python-322474b2c6583e0ea719c8b2fadd045c86801ef1.tar.gz |
Test for presence of python directory
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@708496 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rwxr-xr-x | cpp/src/tests/run_header_test | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cpp/src/tests/run_header_test b/cpp/src/tests/run_header_test index aedd2619a6..bd19ed669e 100755 --- a/cpp/src/tests/run_header_test +++ b/cpp/src/tests/run_header_test @@ -7,7 +7,11 @@ srcdir=`dirname $0` PYTHON_DIR=$srcdir/../../../python test -f qpidd.port && QPID_PORT=`cat qpidd.port` -./header_test -p $QPID_PORT -export PYTHONPATH=$PYTHON_DIR:$PYTHONPATH -$srcdir/header_test.py "localhost" $QPID_PORT +if test -d ${PYTHON_DIR} ; then + ./header_test -p $QPID_PORT + export PYTHONPATH=$PYTHON_DIR:$PYTHONPATH + $srcdir/header_test.py "localhost" $QPID_PORT +else + echo "Skipping header test as python libs not found" +fi |