File: cleantests.py

package info (click to toggle)
libjsoncpp 0.6.0~rc2-3.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,268 kB
  • ctags: 944
  • sloc: cpp: 5,227; 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 )