diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-02-17 15:18:29 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-02-17 15:18:29 +0000 |
commit | 5deb9ac9eaf007901e67fc48048fba395d8aacd5 (patch) | |
tree | 79454d17c09f0d95ad528c23a026cb63b1a1910f /tests | |
parent | 518a15225d1cd47aa1092cebcad395a3e413fcf8 (diff) | |
download | lorry-5deb9ac9eaf007901e67fc48048fba395d8aacd5.tar.gz |
Do not clear $DATADIR, only create work-dir if necessary.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/bzr-single-commit.setup | 5 | ||||
-rwxr-xr-x | tests/cvs-single-commit.setup | 5 | ||||
-rwxr-xr-x | tests/git-single-commit.setup | 5 |
3 files changed, 3 insertions, 12 deletions
diff --git a/tests/bzr-single-commit.setup b/tests/bzr-single-commit.setup index f3df24d..1e966c8 100755 --- a/tests/bzr-single-commit.setup +++ b/tests/bzr-single-commit.setup @@ -20,9 +20,6 @@ set -e -# clean up the data directory -test -d "$DATADIR" && rm -rf "$DATADIR"/* - # create the repository repo="$DATADIR/bzr-test-repo" mkdir "$repo" @@ -49,4 +46,4 @@ EOF # create the working directory -mkdir "$DATADIR/work-dir" +test -d "$DATADIR/work-dir" || mkdir "$DATADIR/work-dir" diff --git a/tests/cvs-single-commit.setup b/tests/cvs-single-commit.setup index 4214406..c94f07c 100755 --- a/tests/cvs-single-commit.setup +++ b/tests/cvs-single-commit.setup @@ -20,9 +20,6 @@ set -e -# clean up the data directory -test -d "$DATADIR" && rm -rf "$DATADIR"/* - # create the repository repo="$DATADIR/cvs-test-repo" export CVSROOT="$repo" @@ -60,4 +57,4 @@ EOF # create the working directory -mkdir "$DATADIR/work-dir" +test -d "$DATADIR/work-dir" || mkdir "$DATADIR/work-dir" diff --git a/tests/git-single-commit.setup b/tests/git-single-commit.setup index f3d8585..f93884d 100755 --- a/tests/git-single-commit.setup +++ b/tests/git-single-commit.setup @@ -20,9 +20,6 @@ set -e -# clean up the data directory -test -d "$DATADIR" && rm -rf "$DATADIR"/* - # create the repository repo="$DATADIR/git-test-repo" mkdir "$repo" @@ -47,4 +44,4 @@ cat <<EOF > $DATADIR/git-test-repo.lorry EOF # create the working directory -mkdir "$DATADIR/work-dir" +test -d "$DATADIR/work-dir" || mkdir "$DATADIR/work-dir" |