diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2008-04-23 15:58:39 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2008-04-23 15:58:39 +0000 |
| commit | 1934aec7e726b1af056f55d94890a67146324202 (patch) | |
| tree | 556fba4a3ff8ab23f65eebd81d5ba285ee4f01fb /cpp/src/tests/run_federation_tests | |
| parent | 100150d5f53264f8cef2773eb7415291dbadb238 (diff) | |
| download | qpid-python-1934aec7e726b1af056f55d94890a67146324202.tar.gz | |
Make python tests work with VPATH builds
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@650922 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/run_federation_tests')
| -rwxr-xr-x | cpp/src/tests/run_federation_tests | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/src/tests/run_federation_tests b/cpp/src/tests/run_federation_tests index 4a5fd39a41..1e2352568f 100755 --- a/cpp/src/tests/run_federation_tests +++ b/cpp/src/tests/run_federation_tests @@ -1,5 +1,7 @@ #!/bin/sh # Run the federation tests. +MY_DIR=$(dirname $(which $0)) +PYTHON_DIR=${MY_DIR}/../../../python trap stop_brokers EXIT @@ -15,10 +17,10 @@ stop_brokers() { ../qpidd -q --port $REMOTE_PORT } -if test -d ../../../python ; then +if test -d ${PYTHON_DIR} ; then start_brokers echo "Running federation tests using brokers on ports $LOCAL_PORT $REMOTE_PORT" - export PYTHONPATH=../../../python - ./federation.py -v -s ../../../specs/amqp.0-10-qpid-errata.xml -b localhost:$LOCAL_PORT --remote-port $REMOTE_PORT || { echo "FAIL federation tests"; exit 1; } + export PYTHONPATH=${PYTHON_DIR} + ${MY_DIR}/federation.py -v -s ${MY_DIR}/../../../specs/amqp.0-10-qpid-errata.xml -b localhost:$LOCAL_PORT --remote-port $REMOTE_PORT || { echo "FAIL federation tests"; exit 1; } fi |
