X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Flib-cvs.sh;h=44263ade2533b848220c234441ab67813ca2b0b4;hb=b3f01ff29f7131e959bcfdfd004744d74d5fa319;hp=648d1619c86bb676faadf62bd831683cb46d6be2;hpb=ffd45f967817a484933c7f905572c9f31f9b9aab;p=git.git diff --git a/t/lib-cvs.sh b/t/lib-cvs.sh index 648d1619c..44263ade2 100644 --- a/t/lib-cvs.sh +++ b/t/lib-cvs.sh @@ -3,9 +3,6 @@ . ./test-lib.sh unset CVS_SERVER -# for clean cvsps cache -HOME=$(pwd) -export HOME if ! type cvs >/dev/null 2>&1 then @@ -30,6 +27,12 @@ case "$cvsps_version" in ;; esac +setup_cvs_test_repository () { + CVSROOT="$(pwd)/.cvsroot" && + cp -r "$TEST_DIRECTORY/$1/cvsroot" "$CVSROOT" && + export CVSROOT +} + test_cvs_co () { # Usage: test_cvs_co BRANCH_NAME rm -rf module-cvs-"$1"