File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,13 +30,17 @@ export CVSROOT CVSWORK GIT_DIR
3030
3131rm -rf " $CVSROOT " " $CVSWORK "
3232
33- cvs init &&
34- test -d " $CVSROOT " &&
35- cvs -Q co -d " $CVSWORK " . &&
36- echo > empty &&
37- git add empty &&
38- git commit -q -a -m " Initial" 2> /dev/null ||
39- exit 1
33+ if ! cvs init || ! test -d " $CVSROOT " || ! cvs -Q co -d " $CVSWORK " .
34+ then
35+ skip_all=" cvs repository set-up fails"
36+ test_done
37+ fi
38+
39+ test_expect_success ' git setup' '
40+ echo >empty &&
41+ git add empty &&
42+ git commit -q -a -m Initial
43+ '
4044
4145check_entries () {
4246 # $1 == directory, $2 == expected
@@ -303,7 +307,7 @@ test_expect_success 're-commit a removed filename which remains in CVS attic' '
303307 git commit -m "Added attic_gremlin" &&
304308 git cvsexportcommit -w "$CVSWORK" -c HEAD &&
305309 (cd "$CVSWORK" && cvs -Q update -d) &&
306- test -f "$CVSWORK/attic_gremlin"
310+ test_path_is_file "$CVSWORK/attic_gremlin"
307311'
308312
309313# the state of the CVS sandbox may be indeterminate for ' space'
You can’t perform that action at this time.
0 commit comments