2017-07-21 03:44:36 -07:00
|
|
|
# Copyright 2007 Baptiste Lepilleur and The JsonCpp Authors
|
2015-04-09 18:01:33 -07:00
|
|
|
# Distributed under MIT license, or public domain if desired and
|
|
|
|
# recognized in your jurisdiction.
|
|
|
|
# See file LICENSE for detail or copy at http://jsoncpp.sourceforge.net/LICENSE
|
|
|
|
|
|
|
|
"""Removes all files created during testing."""
|
|
|
|
|
2007-06-14 21:01:26 +00:00
|
|
|
import glob
|
|
|
|
import os
|
|
|
|
|
|
|
|
paths = []
|
|
|
|
for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]:
|
2015-01-24 15:29:52 -06:00
|
|
|
paths += glob.glob('data/' + pattern)
|
2007-06-14 21:01:26 +00:00
|
|
|
|
|
|
|
for path in paths:
|
2015-01-24 15:29:52 -06:00
|
|
|
os.unlink(path)
|