blob: 36d5b9b461048b24055c1d68a27d582c73cc8088 [file] [log] [blame]
Devin Jeanpierre59e4d352017-07-21 10:44:361# Copyright 2007 Baptiste Lepilleur and The JsonCpp Authors
Sam Clegg63860612015-04-10 01:01:332# 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:268import glob
9import os
10
11paths = []
12for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]:
Christopher Dunn494950a2015-01-24 21:29:5213 paths += glob.glob('data/' + pattern)
Christopher Dunnf9864232007-06-14 21:01:2614
15for path in paths:
Christopher Dunn494950a2015-01-24 21:29:5216 os.unlink(path)