From: bilalobe <elkhatabibilal@gmail.com>
Replace an assertion-style `test -f` check with `test_path_is_file` in `t/t5315-pack-objects-compression.sh`.
This aligns the test with the path-checking helpers used in Git's test suite.
Found with: git grep "test -[efd]" t/
Signed-off-by: bilalobe <elkhatabibilal@gmail.com> --- t/t5315-pack-objects-compression.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to t/t5315-pack-objects-compression.sh +1 −1
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
-- 2.53.0