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

Jim Fulton jim at zope.com
Fri Oct 17 10:02:41 EDT 2008


Log message for revision 92293:
  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/trunk/buildout.cfg

-=-
Modified: ZODB/trunk/buildout.cfg
===================================================================
--- ZODB/trunk/buildout.cfg	2008-10-17 12:46:34 UTC (rev 92292)
+++ ZODB/trunk/buildout.cfg	2008-10-17 14:02:39 UTC (rev 92293)
@@ -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