Haibo Huang | b0bee82 | 2021-02-24 15:40:15 -0800 | [diff] [blame^] | 1 | # 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 Sollenberger | 2eb3b4d | 2016-01-11 14:41:40 -0500 | [diff] [blame] | 8 | import glob |
| 9 | import os |
| 10 | |
| 11 | paths = [] |
| 12 | for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]: |
Haibo Huang | b0bee82 | 2021-02-24 15:40:15 -0800 | [diff] [blame^] | 13 | paths += glob.glob('data/' + pattern) |
Derek Sollenberger | 2eb3b4d | 2016-01-11 14:41:40 -0500 | [diff] [blame] | 14 | |
| 15 | for path in paths: |
Haibo Huang | b0bee82 | 2021-02-24 15:40:15 -0800 | [diff] [blame^] | 16 | os.unlink(path) |