summaryrefslogtreecommitdiff
path: root/qpid/python/run-tests
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/python/run-tests')
-rwxr-xr-xqpid/python/run-tests10
1 files changed, 9 insertions, 1 deletions
diff --git a/qpid/python/run-tests b/qpid/python/run-tests
index 90c0200d01..7efe5523df 100755
--- a/qpid/python/run-tests
+++ b/qpid/python/run-tests
@@ -18,9 +18,17 @@
# under the License.
#
-import sys
+import sys, logging
from qpid.testlib import testrunner
+if "-v" in sys.argv:
+ level = logging.DEBUG
+else:
+ level = logging.WARN
+
+format = "%(asctime)s %(name)-12s %(levelname)-8s %(message)s"
+logging.basicConfig(level=level, format=format, datefmt='%H:%M:%S')
+
if not testrunner.run(): sys.exit(1)