]> git.ipfire.org Git - thirdparty/git.git/commit
t7101: modernize test path checks
authorK Jayatheerth <jayatheerthkulkarni2005@gmail.com>
Fri, 9 Jan 2026 03:20:27 +0000 (08:50 +0530)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Jan 2026 14:36:07 +0000 (06:36 -0800)
commitdbbf6a901bd0ebe9d43a27aadd517ad7d7d8dae0
treeb5912e7539eb9243956811619f01ec1da3794ab1
parentd529f3a197364881746f558e5652f0236131eb86
t7101: modernize test path checks

Replace old-style `test -[df]` and `! test -[df]` assertions with
the modern `test_path_is_file`, `test_path_is_dir`, and
`test_path_is_missing` helpers.

These helpers provide more informative error messages in case of
failure (e.g., "File 'foo' is missing" instead of just exit code 1).

While at it, fix a typo and an incorrect path
reference in one of the test descriptions.

Signed-off-by: K Jayatheerth <jayatheerthkulkarni2005@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7101-reset-empty-subdirs.sh