diff options
| author | Alan Conway <aconway@apache.org> | 2009-11-20 14:33:31 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-11-20 14:33:31 +0000 |
| commit | 484ba284073afdd9aab03727809fc2e85113e664 (patch) | |
| tree | f69d5da52ca78e4730a8f177684b272ac7d27d3c /qpid/cpp/src | |
| parent | 7e6b260dbd83d78a23b2e77a54972018733eec9c (diff) | |
| download | qpid-python-484ba284073afdd9aab03727809fc2e85113e664.tar.gz | |
Fix distcheck failure: don't try to run python tests if python not available.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@882573 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rwxr-xr-x | qpid/cpp/src/tests/run_cluster_tests | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/qpid/cpp/src/tests/run_cluster_tests b/qpid/cpp/src/tests/run_cluster_tests index 4f09c141b3..9546ddf938 100755 --- a/qpid/cpp/src/tests/run_cluster_tests +++ b/qpid/cpp/src/tests/run_cluster_tests @@ -20,11 +20,14 @@ # srcdir=$(dirname $0) - . $srcdir/test_env.sh checkout $srcdir/../../.. ../.. || exit 1 -PYTHONPATH=$srcdir:$PYTHONPATH . $srcdir/ais_check +TEST_EXEC=$QPID_PYTHON_COMMANDS/qpid-python-test +test -x $TEST_EXEC || { echo Skipping test, $TEST_EXEC not found; exit 0; } + +PYTHONPATH=$srcdir:$PYTHONPATH + # Delete old cluster test data OUTDIR=brokertest.tmp rm -rf $OUTDIR @@ -35,6 +38,6 @@ CLUSTER_TESTS_IGNORE=${CLUSTER_TESTS_IGNORE:--i cluster_tests.StoreTests.* -I $s CLUSTER_TESTS=${CLUSTER_TESTS:-$*} set -x -with_ais_group $QPID_PYTHON_COMMANDS/qpid-python-test -DOUTDIR=$OUTDIR -m cluster_tests $CLUSTER_TESTS_IGNORE $CLUSTER_TESTS || exit 1 +with_ais_group $TEST_EXEC -DOUTDIR=$OUTDIR -m cluster_tests $CLUSTER_TESTS_IGNORE $CLUSTER_TESTS || exit 1 rm -rf $OUTDIR #exit 0 |
