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' ]:
|
2015-01-25 05:29:52 +08:00
|
|
|
paths += glob.glob('data/' + pattern)
|
2007-06-15 05:01:26 +08:00
|
|
|
|
|
|
|
for path in paths:
|
2015-01-25 05:29:52 +08:00
|
|
|
os.unlink(path)
|