test.py turns off NS_LOG locally
authorCraig Dowell <craigdo@ee.washington.edu>
Fri, 26 Feb 2010 09:34:54 -0800
changeset 6083 a4a7ded174dc
parent 6077 4329a1519b3e
child 6084 42bbd2a3dd1a
test.py turns off NS_LOG locally
test.py
--- a/test.py	Thu Feb 25 10:52:54 2010 -0800
+++ b/test.py	Fri Feb 26 09:34:54 2010 -0800
@@ -954,6 +954,14 @@
     make_library_path()
 
     #
+    # If lots of logging is enabled, we can crash Python when it tries to 
+    # save all of the text.  We just don't allow logging to be turned on when
+    # test.py runs.  If you want to see logging output from your tests, you
+    # have to run them using the test-runner directly.
+    #
+    os.environ["NS_LOG"] = ""
+
+    #
     # There are a couple of options that imply we can to exit before starting
     # up a bunch of threads and running tests.  Let's detect these cases and 
     # handle them without doing all of the hard work.