[Checkins] SVN: grokproject/branches/ulif-shorttests/tests_paste.txt Use functions for faster test runs.
Uli Fouquet
uli at gnufix.de
Sat Jan 24 08:47:48 EST 2009
Log message for revision 94977:
Use functions for faster test runs.
Changed:
U grokproject/branches/ulif-shorttests/tests_paste.txt
-=-
Modified: grokproject/branches/ulif-shorttests/tests_paste.txt
===================================================================
--- grokproject/branches/ulif-shorttests/tests_paste.txt 2009-01-24 13:46:15 UTC (rev 94976)
+++ grokproject/branches/ulif-shorttests/tests_paste.txt 2009-01-24 13:47:47 UTC (rev 94977)
@@ -11,12 +11,12 @@
Create an empty eggs directory. So we make sure that we don't have to
care for arbitrary eggs, that were installed in the user's environment
-before::
+before. If this directory contains a file ``shorttests`` and the eggs
+directory exists already, then we leave it untouched::
>>> tempeggs = 'grokexample-eggs'
>>> eggsdir = os.path.join(tempdir, tempeggs)
- >>> rmdir(eggsdir)
- >>> os.makedirs(eggsdir)
+ >>> maybe_mkdir(eggsdir)
Then use paster. Eggs are placed in our freshly created eggs directory::
@@ -250,4 +250,4 @@
>>> cd(tempdir)
>>> rmdir('GrokExample')
- >>> rmdir(eggsdir)
+ >>> maybe_rmdir(eggsdir)
More information about the Checkins
mailing list