summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-10-28 10:02:39 +0000
committerGordon Sim <gsim@apache.org>2008-10-28 10:02:39 +0000
commit322474b2c6583e0ea719c8b2fadd045c86801ef1 (patch)
treeb9b794be39d7df3986ef446f58cb811c00f3152a /cpp/src
parent6c7a23b5ad702c3fff5902a8da55e46631fcb55b (diff)
downloadqpid-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-xcpp/src/tests/run_header_test10
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