summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ab8daa1)
raw | patch | inline | side by side (parent: ab8daa1)
author | Steffen Prohaska <prohaska@zib.de> | |
Sat, 26 Jan 2008 09:54:05 +0000 (10:54 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 27 Jan 2008 01:44:05 +0000 (17:44 -0800) |
It is preferable to have the test setup in a test case. The
setup itself may fail and having it as a test case handles this
situation more gracefully.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
setup itself may fail and having it as a test case handles this
situation more gracefully.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9400-git-cvsserver-server.sh | patch | blob | history |
index 641303e0a18c1c9958e4dae86d1fcdee644dbcff..1f2749eefba9baa4b3b88bac3ff8f2d9525896a2 100755 (executable)
export CVSROOT CVS_SERVER
rm -rf "$CVSWORK" "$SERVERDIR"
-echo >empty &&
+test_expect_success 'setup' '
+ echo >empty &&
git add empty &&
git commit -q -m "First Commit" &&
git clone -q --local --bare "$WORKDIR/.git" "$SERVERDIR" >/dev/null 2>&1 &&
GIT_DIR="$SERVERDIR" git config --bool gitcvs.enabled true &&
- GIT_DIR="$SERVERDIR" git config gitcvs.logfile "$SERVERDIR/gitcvs.log" ||
- exit 1
+ GIT_DIR="$SERVERDIR" git config gitcvs.logfile "$SERVERDIR/gitcvs.log"
+'
# note that cvs doesn't accept absolute pathnames
# as argument to co -d