blob: 6a441dc5a06860efdc22dc60a0af12ac25581791 [file] [log] [blame]
Devin Jeanpierre19fc55f2017-04-24 10:49:00 -07001# Copyright 2007 The JsonCpp Authors
Sam Clegg63860612015-04-09 18:01:33 -07002# 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)