[conduit: 67/138] If verbose flag set, output conduit.log onto screen...
- From: John Carr <johncarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [conduit: 67/138] If verbose flag set, output conduit.log onto screen...
- Date: Thu, 21 May 2009 03:32:33 -0400 (EDT)
commit e6346b3b14ebea4251c6cabbdb0093ce47c97e1c
Author: John Carr <john carr unrouted co uk>
Date: Sat May 2 16:18:26 2009 -0700
If verbose flag set, output conduit.log onto screen...
---
test/soup/soup | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/test/soup/soup b/test/soup/soup
index b6eef7b..a3a20d3 100755
--- a/test/soup/soup
+++ b/test/soup/soup
@@ -1,6 +1,6 @@
#! /usr/bin/env python
-import sys, os, unittest
+import sys, os, unittest, logging
from glob import glob
testsdir = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
@@ -25,6 +25,9 @@ from test_synchronization import *
def run_tests(tests, verbose=False, do_coverage=False):
runner = unittest.TextTestRunner(verbosity=2 if verbose else 1)
+ if verbose:
+ logging.basicConfig(level=logging.DEBUG)
+
if do_coverage:
import coverage
coverage.erase()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]