2007-06-15 05:01:26 +08:00
|
|
|
# removes all files created during testing
|
|
|
|
import glob
|
|
|
|
import os
|
|
|
|
|
|
|
|
paths = []
|
|
|
|
for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]:
|
2009-11-22 02:20:25 +08:00
|
|
|
paths += glob.glob( 'data/' + pattern )
|
2007-06-15 05:01:26 +08:00
|
|
|
|
|
|
|
for path in paths:
|
|
|
|
os.unlink( path )
|