[Zodb-checkins] SVN: ZODB/branches/3.8/buildout.cfg Changed the generated test script to use a part-local tmp directory

Jim Fulton jim at zope.com
Tue Oct 7 11:26:38 EDT 2008


Log message for revision 91852:
  Changed the generated test script to use a part-local tmp directory
  that is cleaned up at the start of a test run.
  
  Unfortunately, the ZODB tests leave lots of temporary files behind
  which can cause failures in subsequent test runs and which tend to
  litter /tmp. Eventually, I want to clean that up, but, in the mean
  time, I can limit the damage to the test part directory.
  

Changed:
  U   ZODB/branches/3.8/buildout.cfg

-=-
Modified: ZODB/branches/3.8/buildout.cfg
===================================================================
--- ZODB/branches/3.8/buildout.cfg	2008-10-07 14:54:39 UTC (rev 91851)
+++ ZODB/branches/3.8/buildout.cfg	2008-10-07 15:26:37 UTC (rev 91852)
@@ -6,6 +6,11 @@
 [test]
 recipe = zc.recipe.testrunner
 eggs = ZODB3
+initialization = 
+  import os, tempfile, shutil
+  if os.path.exists('tmp'): shutil.rmtree('tmp')
+  os.mkdir('tmp')
+  tempfile.tempdir = os.path.abspath('tmp')
 
 [scripts]
 recipe = zc.recipe.egg



More information about the Zodb-checkins mailing list