Skip to content

Commit 2d57632

Browse files
committed
Merge branch 'ps/t9200-test-path-is-helpers'
Test update. * ps/t9200-test-path-is-helpers: t9200: replace test -f with modern path helper t9200: handle missing CVS with skip_all
2 parents ca1db8a + 9072576 commit 2d57632

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

t/t9200-git-cvsexportcommit.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@ export CVSROOT CVSWORK GIT_DIR
3030

3131
rm -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

4145
check_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'

0 commit comments

Comments
 (0)