blob: 36d5b9b461048b24055c1d68a27d582c73cc8088 [file] [log] [blame]
Haibo Huangb0bee822021-02-24 15:40:15 -08001# Copyright 2007 Baptiste Lepilleur and The JsonCpp Authors
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
Derek Sollenberger2eb3b4d2016-01-11 14:41:40 -05008import glob
9import os
10
11paths = []
12for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]:
Haibo Huangb0bee822021-02-24 15:40:15 -080013 paths += glob.glob('data/' + pattern)
Derek Sollenberger2eb3b4d2016-01-11 14:41:40 -050014
15for path in paths:
Haibo Huangb0bee822021-02-24 15:40:15 -080016 os.unlink(path)