threads / patch / 53039

v2t1300: convert "test -f" with "test_path_is_file"

Subject: [GSOC][PATCH v2] t1300: convert "test -f" with "test_path_is_file"

## tl;dr

One message between Mar 20, 2020 and Mar 20, 2020. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Adrian Wijaya· Mar 20, 2020, 15:56 UTC · lore

Convert "test -f" with "test_path_is_file" to give more verbose test output on failure.

Signed-off-by: Adrian Wijaya <adrianwijaya100@gmail.com>
---
 t/t1300-config.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Show changes to t/t1300-config.sh +2 −2
diff --git a/t/t1300-config.sh b/t/t1300-config.sh
index 97ebfe1f9d..d74554fc09 100755
--- a/t/t1300-config.sh
+++ b/t/t1300-config.sh
@@ -1020,11 +1020,11 @@ test_expect_success SYMLINKS 'symlinked configuration' '
 	ln -s notyet myconfig &&
 	git config --file=myconfig test.frotz nitfol &&
 	test -h myconfig &&
-	test -f notyet &&
+	test_path_is_file notyet &&
 	test "z$(git config --file=notyet test.frotz)" = znitfol &&
 	git config --file=myconfig test.xyzzy rezrov &&
 	test -h myconfig &&
-	test -f notyet &&
+	test_path_is_file notyet &&
 	cat >expect <<-\EOF &&
 	nitfol
 	rezrov
-- 
2.26.0.rc1.11.g30e9940356

← back to recent threads