summaryrefslogtreecommitdiff
path: root/java/tools/bin/qpid-python-testkit
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2011-07-15 04:43:44 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2011-07-15 04:43:44 +0000
commita391d12f254c7e3dec98c0de9dd60574039261e4 (patch)
tree1900ac2038889c4a129edadce1e63c8877b7d472 /java/tools/bin/qpid-python-testkit
parent84c30849ded8086ebfc1d694f3a739ca11c2b0f2 (diff)
downloadqpid-python-a391d12f254c7e3dec98c0de9dd60574039261e4.tar.gz
QPID-3358 Simplified the scripts to make it easy to run them.
1. Removed the various set-env scripts. Instead in their place I want to introduce profiles that sets the env to run under different environments. Ex from a source checkout or installed rpms. 2. Introduced Profile-run-from-source to set the env to run the tools from an SVN checkout in a linux env. 3. Modified the scripts to use common variable names things like classpaths, java executable, logging config etc.. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1146959 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/tools/bin/qpid-python-testkit')
-rwxr-xr-xjava/tools/bin/qpid-python-testkit11
1 files changed, 7 insertions, 4 deletions
diff --git a/java/tools/bin/qpid-python-testkit b/java/tools/bin/qpid-python-testkit
index cbe7972421..7233d0d075 100755
--- a/java/tools/bin/qpid-python-testkit
+++ b/java/tools/bin/qpid-python-testkit
@@ -22,9 +22,12 @@
# via the python test runner. The defaults are set for a running
# from an svn checkout
-. ./set-testkit-env.sh
+. check-qpid-java-env
export PYTHONPATH=./:$PYTHONPATH
-rm -rf $OUTDIR
-qpid-python-test -DOUTDIR=$OUTDIR -m testkit "$@"
-
+echo $PYTHONPATH
+if [ "$OUTDIR" = "" ] ; then
+ OUTDIR=$PWD
+fi
+testdir=$OUTDIR/testkit-out-`date +%F-%H-%M-%S`
+qpid-python-test -m testkit -DOUTDIR=$testdir"$@"