aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorPablo Sabater <pabloosabaterr@gmail.com>2026-03-12 18:33:05 +0100
committerJunio C Hamano <gitster@pobox.com>2026-03-12 10:39:04 -0700
commit90725761237c302e693089c8d9c4f2b206369a82 (patch)
tree09d60e258842bf39dddaac1ff9f3ddf55d285849 /t
parent6523589a2c034de168f6240d040e0910f7aeddda (diff)
downloadgit-90725761237c302e693089c8d9c4f2b206369a82.tar.xz
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>
Diffstat (limited to 't')
-rwxr-xr-xt/t9200-git-cvsexportcommit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9200-git-cvsexportcommit.sh b/t/t9200-git-cvsexportcommit.sh
index cba3b1a28a..14cbe96527 100755
--- a/t/t9200-git-cvsexportcommit.sh
+++ b/t/t9200-git-cvsexportcommit.sh
@@ -307,7 +307,7 @@ test_expect_success 're-commit a removed filename which remains in CVS attic' '
git commit -m "Added attic_gremlin" &&
git cvsexportcommit -w "$CVSWORK" -c HEAD &&
(cd "$CVSWORK" && cvs -Q update -d) &&
- test -f "$CVSWORK/attic_gremlin"
+ test_path_is_file "$CVSWORK/attic_gremlin"
'
# the state of the CVS sandbox may be indeterminate for ' space'