Sam Clegg | 6386061 | 2015-04-09 18:01:33 -0700 | [diff] [blame] | 1 | # Copyright 2007 Baptiste Lepilleur |
| 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 | |
Christopher Dunn | f986423 | 2007-06-14 21:01:26 +0000 | [diff] [blame] | 8 | import glob |
| 9 | import os |
| 10 | |
| 11 | paths = [] |
| 12 | for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]: |
Christopher Dunn | 494950a | 2015-01-24 15:29:52 -0600 | [diff] [blame] | 13 | paths += glob.glob('data/' + pattern) |
Christopher Dunn | f986423 | 2007-06-14 21:01:26 +0000 | [diff] [blame] | 14 | |
| 15 | for path in paths: |
Christopher Dunn | 494950a | 2015-01-24 15:29:52 -0600 | [diff] [blame] | 16 | os.unlink(path) |