[Zodb-checkins] CVS: ZODB4 - test.py:1.18

Jeremy Hylton jeremy at zope.com
Tue Jun 24 19:25:54 EDT 2003


Update of /cvs-repository/ZODB4
In directory cvs.zope.org:/tmp/cvs-serv9899

Modified Files:
	test.py 
Log Message:
Fix occasional connect errors in Berkeley/ZEO tests.

Sometimes Berkeley can take a really long time to open and initialize
the storage.  Make sure forker waits long enough before giving up.

Add a hack to test.py and zeoserver.py to pass the location of log.ini
to spawned processes.  I was in a hurry and couldn't think of a better
way.


=== ZODB4/test.py 1.17 => 1.18 ===
--- ZODB4/test.py:1.17	Tue Jun 24 17:39:28 2003
+++ ZODB4/test.py	Tue Jun 24 18:25:23 2003
@@ -614,6 +614,10 @@
         level = logging.CRITICAL
     logging.root.setLevel(level)
     if os.path.exists(logini):
+        # Hack: The ZEO tests need to pass the logging config to spawned
+        # processes.  I can't think of a better way to do it than using
+        # environment variables.
+        os.environ["LOGINI"] = logini
         logging.config.fileConfig(logini)
 
     files = find_tests(module_filter)




More information about the Zodb-checkins mailing list