cleantests.py 490 B

1234567891011121314151617
  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. """Removes all files created during testing."""
  6. import glob
  7. import os
  8. paths = []
  9. for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]:
  10. paths += glob.glob('data/' + pattern)
  11. for path in paths:
  12. os.unlink(path)