summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortermie <github@anarkystic.com>2011-02-04 06:59:15 +0000
committerTarmac <>2011-02-04 06:59:15 +0000
commit7783105dbbfa5c6e6d1ab9cc965929d1c4cc4eef (patch)
treeffa89e7feae9e1f45e50e598c7899abda5dcc7e2
parentf5c1ef877290e4bead7d2ac9add96a6471f4b40d (diff)
parentf3652fd4814eb5d9df851422aa946f283263fd07 (diff)
downloadnova-7783105dbbfa5c6e6d1ab9cc965929d1c4cc4eef.tar.gz
nova-7783105dbbfa5c6e6d1ab9cc965929d1c4cc4eef.tar.xz
nova-7783105dbbfa5c6e6d1ab9cc965929d1c4cc4eef.zip
Adds logging.basicConfig() to run_tests.py so that attempting to log debug messages from tests will work.
-rw-r--r--run_tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/run_tests.py b/run_tests.py
index 5c8436aee..24786e8ad 100644
--- a/run_tests.py
+++ b/run_tests.py
@@ -26,6 +26,8 @@ from nose import config
from nose import result
from nose import core
+from nova import log as logging
+
class NovaTestResult(result.TextTestResult):
def __init__(self, *args, **kw):
@@ -58,6 +60,7 @@ class NovaTestRunner(core.TextTestRunner):
if __name__ == '__main__':
+ logging.basicConfig()
c = config.Config(stream=sys.stdout,
env=os.environ,
verbosity=3,