summaryrefslogtreecommitdiff
path: root/tests/teardown
diff options
context:
space:
mode:
Diffstat (limited to 'tests/teardown')
-rwxr-xr-xtests/teardown7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/teardown b/tests/teardown
new file mode 100755
index 0000000..c821266
--- /dev/null
+++ b/tests/teardown
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+# Delete everything under $DATADIR except git-upstream
+find "$DATADIR" -mindepth 1 -maxdepth 1 \! -path "$DATADIR/git-upstream" \
+ -exec rm -rf {} \+