From d587789d4972af6acee94471edc1db08a1b7f40b Mon Sep 17 00:00:00 2001 From: Jannis Pohlmann Date: Fri, 17 Feb 2012 14:41:19 +0000 Subject: 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. --- tests/bzr-single-commit.setup | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/bzr-single-commit.setup') 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 < $DATADIR/bzr-test-repo.lorry } EOF -# create the working directory for lorry + +# create the working directory mkdir "$DATADIR/work-dir" -- cgit v1.2.1