summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-05-14 21:51:28 +0000
committerAlan Conway <aconway@apache.org>2008-05-14 21:51:28 +0000
commit640417f6dfa3e9bb873a199566409e45ece739ef (patch)
treea8f74fecd09a99197ccaa152dac00a6047b51d62
parent9f7850a4dd9dfdabc293a5961f0bbc862813a6d0 (diff)
downloadqpid-python-640417f6dfa3e9bb873a199566409e45ece739ef.tar.gz
Python tests running in rpmbuild.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@656443 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--cpp/Makefile.am2
-rwxr-xr-xcpp/src/tests/python_tests2
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/Makefile.am b/cpp/Makefile.am
index a97020c701..7d128e557b 100644
--- a/cpp/Makefile.am
+++ b/cpp/Makefile.am
@@ -30,7 +30,7 @@ clean-local:
rpmbuild: $(SPEC) dist-gzip
mkdir -p $(RPMDIRS)
- rpmbuild $(RPMMACROS) $(RPMOPTS) $(SPEC)
+ QPID_PYTHON_DIR=$(abs_top_srcdir)/../python rpmbuild $(RPMMACROS) $(RPMOPTS) $(SPEC)
if HAS_RPMLINT
rpmlint `find rpm -name '*.rpm'`
else
diff --git a/cpp/src/tests/python_tests b/cpp/src/tests/python_tests
index e4b70f5ff5..553c5f4cdb 100755
--- a/cpp/src/tests/python_tests
+++ b/cpp/src/tests/python_tests
@@ -3,7 +3,7 @@
QPID_PORT=${QPID_PORT:-5672}
PYTHON_TESTS=${PYTHON_TESTS:-$*}
MY_DIR=$(dirname $(which $0))
-PYTHON_DIR=${MY_DIR}/../../../python
+PYTHON_DIR=${QPID_PYTHON_DIR:-${MY_DIR}/../../../python}
run() {
SPEC=$1