From 9bdb24353d5eaf69ebf2c741ef6160d09fd90597 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/qpid@1457097 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/brokertest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpp/src') 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") -- cgit v1.2.1