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/python_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/python_tests')
-rwxr-xr-x | cpp/src/tests/python_tests | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/tests/python_tests b/cpp/src/tests/python_tests index 0e7b494896..ce6b1f3810 100755 --- a/cpp/src/tests/python_tests +++ b/cpp/src/tests/python_tests @@ -2,6 +2,8 @@ # Run the python tests. QPID_PORT=${QPID_PORT:-5672} PYTHON_TESTS=${PYTHON_TESTS:-$*} +MY_DIR=$(dirname $(which $0)) +PYTHON_DIR=${MY_DIR}/../../../python run() { SPEC=$1 @@ -9,8 +11,8 @@ run() { ./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 ../../../python ; then - cd ../../../python +if test -d ${PYTHON_DIR} ; then + cd ${PYTHON_DIR} run 0-10-errata cpp_failing_0-10.txt if test -z "$QPID_NO_PREVIEW" ; then run ../specs/amqp.0-10-preview.xml cpp_failing_0-10_preview.txt; fi else |