aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorBilal El Khatabi <elkhatabibilal@gmail.com>2026-03-19 18:06:52 +0000
committerJunio C Hamano <gitster@pobox.com>2026-03-19 11:58:18 -0700
commit1d6fd6d36edebd23407a49513f6482ceb3e0f648 (patch)
treea696e6406fc0f04f52738b46b28967e3ae96b6ba /t
parent7ff1e8dc1e1680510c96e69965b3fa81372c5037 (diff)
downloadgit-1d6fd6d36edebd23407a49513f6482ceb3e0f648.tar.xz
t5315: use test_path_is_file for loose-object check
Use test_path_is_file instead of test -f when checking that the loose object was written to the expected path. This uses Git's path-checking helper, which provides more specific failure output than a raw test -f check. Signed-off-by: Bilal El Khatabi <elkhatabibilal@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t5315-pack-objects-compression.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5315-pack-objects-compression.sh b/t/t5315-pack-objects-compression.sh
index 8bacd96275..d0feab17b4 100755
--- a/t/t5315-pack-objects-compression.sh
+++ b/t/t5315-pack-objects-compression.sh
@@ -10,7 +10,7 @@ test_expect_success setup '
# make sure it resulted in a loose object
ob=$(sed -e "s/\(..\).*/\1/" object-name) &&
ject=$(sed -e "s/..\(.*\)/\1/" object-name) &&
- test -f .git/objects/$ob/$ject
+ test_path_is_file .git/objects/$ob/$ject
'
while read expect config