diff mbox series

[1/1] t1403: prefer test_path_exists helper function

Message ID 20250301105838.1481-2-danimahendra0904@gmail.com (mailing list archive)
State New
Headers show
Series t1403: prefer test_path_exists helper function | expand

Commit Message

Mahendra Dani March 1, 2025, 10:58 a.m. UTC
test -e does not provide a nice error message when
we hit test failures, so use test_path_exists instead.

Signed-off-by: Mahendra Dani <danimahendra0904@gmail.com>
---
 t/t1403-show-ref.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/t/t1403-show-ref.sh b/t/t1403-show-ref.sh
index 9d698b3cc3..12f7b60024 100755
--- a/t/t1403-show-ref.sh
+++ b/t/t1403-show-ref.sh
@@ -196,7 +196,7 @@  test_expect_success 'show-ref --verify with dangling ref' '
 
 	remove_object() {
 		file=$(sha1_file "$*") &&
-		test -e "$file" &&
+		test_path_exists "$file" &&
 		rm -f "$file"
 	} &&