From: Pushkar Singh <pushkarkumarsingh1970@gmail.com>
Replace plain "test -f" checks with "test_path_is_file" and symbolic link checks with "test_path_is_symlink". The test framework helpers provide clearer diagnostics and better consistency across the test suite.
Signed-off-by: Pushkar Singh <pushkarkumarsingh1970@gmail.com> --- t/t1300-config.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Show changes to t/t1300-config.sh +4 −4
diff --git a/t/t1300-config.sh b/t/t1300-config.sh index 358d636379..9850fcd5b5 100755 --- a/t/t1300-config.sh +++ b/t/t1300-config.sh @@ -1232,12 +1232,12 @@ test_expect_success SYMLINKS 'symlinked configuration' ' test_when_finished "rm myconfig" && ln -s notyet myconfig && git config --file=myconfig test.frotz nitfol && - test -h myconfig && - test -f notyet && + test_path_is_symlink myconfig && + 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_symlink myconfig && + test_path_is_file notyet && cat >expect <<-\EOF && nitfol rezrov
-- 2.43.0