From ff5323d8a0ab9bca96152896337f498335f0c4b3 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 15 Mar 2013 20:27:32 +0000 Subject: 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@1457097 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/brokertest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/tests/brokertest.py b/qpid/cpp/src/tests/brokertest.py index af1edfee44..7fc3e7f0eb 100644 --- a/qpid/cpp/src/tests/brokertest.py +++ b/qpid/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") -- cgit v1.2.1