summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-02-25 13:57:57 +0000
committerLars Wirzenius <liw@liw.fi>2012-02-25 13:57:57 +0000
commitc2990d501379a4b8e7c84070c4453eae947578a9 (patch)
treee8f991e8fb83113b7f567c7207ddfb7517efa2e8 /tests
parent1d86735f41c8b6515555e9e85522bc8f5ceecf05 (diff)
downloadsummain-c2990d501379a4b8e7c84070c4453eae947578a9.tar.gz
Clean up $DATADIR after each test
Every test should start with an empty directory.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/teardown3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/teardown b/tests/teardown
new file mode 100755
index 0000000..d64c24e
--- /dev/null
+++ b/tests/teardown
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+find "$DATADIR" -mindepth 1 -delete