File: cleantests.py

package info (click to toggle)
libjsoncpp 0.6.0~rc2-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 1,216 kB
  • sloc: cpp: 5,226; python: 1,259; ansic: 82; makefile: 32
file content (10 lines) | stat: -rw-r--r-- 247 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
# removes all files created during testing
import glob
import os

paths = []
for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]:
    paths += glob.glob( 'data/' + pattern )

for path in paths:
    os.unlink( path )