diff options
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" |