Skip to content

Commit 9072576

Browse files
pabloosabaterrgitster
authored andcommitted
t9200: replace test -f with modern path helper
Replace old style 'test -f' with helper 'test_path_is_file', which make debugging a failing test easier by loudly reporting what expectation was not met. Signed-off-by: Pablo Sabater <pabloosabaterr@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 6523589 commit 9072576

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

t/t9200-git-cvsexportcommit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ test_expect_success 're-commit a removed filename which remains in CVS attic' '
307307
git commit -m "Added attic_gremlin" &&
308308
git cvsexportcommit -w "$CVSWORK" -c HEAD &&
309309
(cd "$CVSWORK" && cvs -Q update -d) &&
310-
test -f "$CVSWORK/attic_gremlin"
310+
test_path_is_file "$CVSWORK/attic_gremlin"
311311
'
312312

313313
# the state of the CVS sandbox may be indeterminate for ' space'

0 commit comments

Comments
 (0)