diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2013-11-12 21:22:24 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2013-11-12 21:22:24 +0000 |
| commit | 3f11310a23a82dddc6237f5c15abfc1a05af19dc (patch) | |
| tree | 3cd5cbb2d0f04ab50f8c5cf468eb82043b6cc1f8 /cpp/src/tests/swig_python_tests | |
| parent | f87a61f06c3aa3d866cd3cc2fccf003276f6949a (diff) | |
| download | qpid-python-3f11310a23a82dddc6237f5c15abfc1a05af19dc.tar.gz | |
QPID-5330: Simplify testing for presence of python testing code -
this makes it much easier not to call the python testing code
when it isn't available
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1541241 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/swig_python_tests')
| -rwxr-xr-x | cpp/src/tests/swig_python_tests | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/tests/swig_python_tests b/cpp/src/tests/swig_python_tests index 2eb8ce67b3..1815372863 100755 --- a/cpp/src/tests/swig_python_tests +++ b/cpp/src/tests/swig_python_tests @@ -20,7 +20,10 @@ # # Run the python tests. -source ./test_env.sh +source $QPID_TEST_COMMON + +ensure_python_tests + trap stop_broker INT TERM QUIT if [[ -a $AMQP_LIB ]] ; then @@ -43,7 +46,6 @@ stop_broker() { $QPIDD_EXEC -q --port $QPID_PORT } -test -d $PYTHON_DIR || skip "no python dir" test -f $PYTHONSWIGMODULE || skip "no swigged python client" start_broker |
