summaryrefslogtreecommitdiff
path: root/tests/bzr-single-commit.setup
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-02-17 14:41:19 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-02-17 14:41:19 +0000
commitd587789d4972af6acee94471edc1db08a1b7f40b (patch)
tree5ff5b1424fa4d25fde8849c920784ee39ab837dc /tests/bzr-single-commit.setup
parentf879ddd5a35c185b867a6b66adb363061c36bdeb (diff)
downloadlorry-d587789d4972af6acee94471edc1db08a1b7f40b.tar.gz
Add tests for Git and CVS repos with a single commit.
Also make sure that the data dir is clean when running any of the tests. Unfortunately, CVS fails at the moment, so I've commented out a few lines in the script to not make it do anything for now.
Diffstat (limited to 'tests/bzr-single-commit.setup')
-rwxr-xr-xtests/bzr-single-commit.setup6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/bzr-single-commit.setup b/tests/bzr-single-commit.setup
index acb6949..f3df24d 100755
--- a/tests/bzr-single-commit.setup
+++ b/tests/bzr-single-commit.setup
@@ -20,6 +20,9 @@
set -e
+# clean up the data directory
+test -d "$DATADIR" && rm -rf "$DATADIR"/*
+
# create the repository
repo="$DATADIR/bzr-test-repo"
mkdir "$repo"
@@ -44,5 +47,6 @@ cat <<EOF > $DATADIR/bzr-test-repo.lorry
}
EOF
-# create the working directory for lorry
+
+# create the working directory
mkdir "$DATADIR/work-dir"