]> git.ipfire.org Git - thirdparty/git.git/commit
t9160:modernize test path checking
authorHodaSalim <hoda.s.salim@gmail.com>
Mon, 2 Feb 2026 16:18:00 +0000 (18:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Feb 2026 19:00:30 +0000 (11:00 -0800)
commit68060b92629b29d9d669a91fd37da220175eaaea
tree75129a8a68adc43b3bd69f2a2b4fb5266597baa8
parent67ad42147a7acc2af6074753ebd03d904476118f
t9160:modernize test path checking

Replace old-style path checks with Git's dedicated test helpers:
- test -f → test_path_is_file
- test -d → test_path_is_dir
- test -s → test_file_not_empty

Fix typos with the word "subsequent"

Found using: git grep "test -[efd]" t/

This improves test readability and provides better error messages
when path checks fail.

Signed-off-by: HodaSalim <hoda.s.salim@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9160-git-svn-preserve-empty-dirs.sh