qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r708496 - /incubator/qpid/trunk/qpid/cpp/src/tests/run_header_test
Date Tue, 28 Oct 2008 10:02:39 GMT
Author: gsim
Date: Tue Oct 28 03:02:39 2008
New Revision: 708496

URL: http://svn.apache.org/viewvc?rev=708496&view=rev
Log:
Test for presence of python directory


Modified:
    incubator/qpid/trunk/qpid/cpp/src/tests/run_header_test

Modified: incubator/qpid/trunk/qpid/cpp/src/tests/run_header_test
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/tests/run_header_test?rev=708496&r1=708495&r2=708496&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/tests/run_header_test (original)
+++ incubator/qpid/trunk/qpid/cpp/src/tests/run_header_test Tue Oct 28 03:02:39 2008
@@ -7,7 +7,11 @@
 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
 



Mime
View raw message