t/t3903-stash.sh: replace test [-d|-f] with test_path_is_*

Use test_path_is_* to replace test [-d|-f] because that give more explicit debugging information. And it doesn't change the semantics. Signed-off-by: COGONI Guillaume <cogoni.guillaume@gmail.com> Co-authored-by: BRESSAT Jonathan <git.jonathan.bressat@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

COGONI Guillaume committed Feb 22, 2022 at 22:54 UTC f01f948282d00b0e22ff08a3acf859fd49bff07c
1 file changed +3 -3
t/t3903-stash.sh
+3 -3
@@ -487,7 +487,7 @@ test_expect_failure 'stash directory to file' '
487 rm -fr dir &&
488 echo bar >dir &&
489 git stash save "directory to file" &&
490 - test -d dir &&
490 + test_path_is_dir dir &&
491 test foo = "$(cat dir/file)" &&
492 test_must_fail git stash apply &&
493 test bar = "$(cat dir)" &&
@@ -500,10 +500,10 @@ test_expect_failure 'stash file to directory' '
500 mkdir file &&
501 echo foo >file/file &&
502 git stash save "file to directory" &&
503 - test -f file &&
503 + test_path_is_file file &&
504 test bar = "$(cat file)" &&
505 git stash apply &&
506 - test -f file/file &&
506 + test_path_is_file file/file &&
507 test foo = "$(cat file/file)"
508 '
509