blob: 9772d542b3a4cf64d3cd57062e96439cc513d333 [file] [log] [blame]
Sam Clegg63860612015-04-09 18:01:33 -07001# Copyright 2007 Baptiste Lepilleur
2# Distributed under MIT license, or public domain if desired and
3# recognized in your jurisdiction.
4# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
5
6"""Removes all files created during testing."""
7
Christopher Dunnf9864232007-06-14 21:01:26 +00008import glob
9import os
10
11paths = []
12for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]:
Christopher Dunn494950a2015-01-24 15:29:52 -060013 paths += glob.glob('data/' + pattern)
Christopher Dunnf9864232007-06-14 21:01:26 +000014
15for path in paths:
Christopher Dunn494950a2015-01-24 15:29:52 -060016 os.unlink(path)