Changeset: 21fe0af689d4 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=21fe0af689d4
Modified Files:
testing/Mtest.py.in
Branch: Apr2011
Log Message:
After a test run in a directory, remove files we don't need.
This can reduce disk usage after a test run quite dramatically by
removing huge intermediate files.
diffs (44 lines):
diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -49,6 +49,7 @@
#import signal
#import getpass
import Mfilter
+import fnmatch
verbose = False
@@ -1091,11 +1092,27 @@
CreateHtmlIndex(env, *body)
elem = AddSubToHtmlIndex(env, TSTDIR, max(FdOut,FdErr))
- # HACK: remove large data-/input- files to save disk space
- for f in 'tcpip2.init.bat', 'ascii_io.4MBload', 'test100k',
'no.145.k100_unique1', 'test_00.k100_unique1', 'VOCrightpages.xml',
'VOCleftpages.xml':
- p = os.path.join(TSTTRGDIR,f)
- if os.path.isfile(p):
- os.remove(p)
+ # remove extra files created by tests
+ for f in os.listdir(TSTTRGDIR):
+ ff = os.path.join(TSTTRGDIR, f)
+ if os.path.islink(ff):
+ continue
+ for pat in ['.Mapprove.rc', '.index.head.html', '.index.html',
+ 'index.head.html', 'index.html',
+ 'times.lst', 'times.sql',
+ '.*.nosrc.index.html',
+ '.*.src.index.head.html', '.*.src.index.html',
+ '*.FILTERED', '.*.SKIPPED',
+ '*.client.err', '*.client.out',
+ '*.err.diff.html', '*.err.head.html', '*.err.html',
+ '*.out.diff.html', '*.out.head.html', '*.out.html',
+ '*.server.err', '*.server.out',
+ '*.stable.err*', '*.stable.out*',
+ '*.test.err', '*.test.out']:
+ if fnmatch.fnmatch(f, pat):
+ break
+ else:
+ os.unlink(ff)
else: # THISFILE == "Mapprove.py"
if not os.path.exists(TSTTRGDIR):
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list