diff options
| author | Alan Conway <aconway@apache.org> | 2013-03-15 20:27:32 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2013-03-15 20:27:32 +0000 |
| commit | 9bdb24353d5eaf69ebf2c741ef6160d09fd90597 (patch) | |
| tree | bfbd6c3f9a28e34fe0b244f7d9ee547977fbb3d9 /cpp | |
| parent | 76dee32310be35c700849a07bbb00784435cb91b (diff) | |
| download | qpid-python-9bdb24353d5eaf69ebf2c741ef6160d09fd90597.tar.gz | |
QPID-4640: brokertest.py prints a message and skips tests if qmf.console not available.
Tests that use qmf.console will print a skip message if it is not available.
For example: they may not be available when building from a distro rather than a
checkout.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1457097 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/src/tests/brokertest.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/tests/brokertest.py b/cpp/src/tests/brokertest.py index af1edfee44..7fc3e7f0eb 100644 --- a/cpp/src/tests/brokertest.py +++ b/cpp/src/tests/brokertest.py @@ -28,7 +28,10 @@ from unittest import TestCase from copy import copy from threading import Thread, Lock, Condition from logging import getLogger -import qmf.console + +try: import qmf.console +except: print "Cannot import module qmf.console, skipping tests"; exit(0); + log = getLogger("qpid.brokertest") |
