2017-07-21 12:44:36 +02:00
|
|
|
# Copyright 2007 Baptiste Lepilleur and The JsonCpp Authors
|
2015-04-10 03:01:33 +02: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 23:01:26 +02:00
|
|
|
import glob
|
|
|
|
import os
|
|
|
|
|
|
|
|
paths = []
|
|
|
|
for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]:
|
2015-01-24 22:29:52 +01:00
|
|
|
paths += glob.glob('data/' + pattern)
|
2007-06-14 23:01:26 +02:00
|
|
|
|
|
|
|
for path in paths:
|
2015-01-24 22:29:52 +01:00
|
|
|
os.unlink(path)
|