aboutsummaryrefslogtreecommitdiff
path: root/lib/jsoncpp/test/cleantests.py
diff options
context:
space:
mode:
authortheuni <theuni-nospam-@xbmc.org>2011-01-24 16:05:21 -0500
committertheuni <theuni-nospam-@xbmc.org>2011-01-24 16:05:21 -0500
commitc51b1189e3d5353e842991f5859ddcea0f73e426 (patch)
treeef2cb8a6184699aa614f3655dca4ce661cdc108e /lib/jsoncpp/test/cleantests.py
parentbe61ebdc9e897fe40c6f371111724de79ddee8d5 (diff)
Merged cptspiff's code-reshuffle branch.
Squashed commit due to build breakage during code-reshuffle history. Conflicts: xbmc/Util.cpp xbmc/cdrip/CDDARipper.cpp xbmc/filesystem/Directory.cpp xbmc/filesystem/File.cpp
Diffstat (limited to 'lib/jsoncpp/test/cleantests.py')
-rw-r--r--lib/jsoncpp/test/cleantests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/jsoncpp/test/cleantests.py b/lib/jsoncpp/test/cleantests.py
new file mode 100644
index 0000000000..c38fd8ffdd
--- /dev/null
+++ b/lib/jsoncpp/test/cleantests.py
@@ -0,0 +1,10 @@
+# removes all files created during testing
+import glob
+import os
+
+paths = []
+for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]:
+ paths += glob.glob( 'data/' + pattern )
+
+for path in paths:
+ os.unlink( path )