]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t9200: replace test -f with modern path helper
authorPablo Sabater <pabloosabaterr@gmail.com>
Thu, 12 Mar 2026 17:33:05 +0000 (18:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Mar 2026 17:39:04 +0000 (10:39 -0700)
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>
t/t9200-git-cvsexportcommit.sh

index cba3b1a28a327ce193750d0819ee1d6a99ec34df..14cbe9652779bc4481f4d71baa28394212a37a05 100755 (executable)
@@ -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'