Commit 51eddcd5 authored by Jim Fulton's avatar Jim Fulton

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.
parent 22ffdc4b
...@@ -6,6 +6,11 @@ find-links = http://download.zope.org/distribution/ ...@@ -6,6 +6,11 @@ find-links = http://download.zope.org/distribution/
[test] [test]
recipe = zc.recipe.testrunner recipe = zc.recipe.testrunner
eggs = ZODB3 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] [scripts]
recipe = zc.recipe.egg recipe = zc.recipe.egg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment