From d58b837942a135533f3ec576a133c7ceecad3eee Mon Sep 17 00:00:00 2001 From: Rajith Muditha Attapattu Date: Fri, 15 Jul 2011 04:43:44 +0000 Subject: 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@1146959 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/java/tools/bin/qpid-python-testkit | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'qpid/java/tools/bin/qpid-python-testkit') diff --git a/qpid/java/tools/bin/qpid-python-testkit b/qpid/java/tools/bin/qpid-python-testkit index cbe7972421..7233d0d075 100755 --- a/qpid/java/tools/bin/qpid-python-testkit +++ b/qpid/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"$@" -- cgit v1.2.1