Skip to content

Commit c513a95

Browse files
periperidipgitster
authored andcommitted
t6025: use helpers to replace test -f <path>
Take advantage of helper function 'test_path_is_file()' to replace 'test -f' since the function makes the code more readable and gives better error messages. Signed-off-by: Shourya Shukla <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7078984 commit c513a95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/t6025-merge-symlinks.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ test_expect_success 'merge master into b-symlink, which has a different symbolic
3636
'
3737

3838
test_expect_success 'the merge result must be a file' '
39-
test -f symlink
39+
test_path_is_file symlink
4040
'
4141

4242
test_expect_success 'merge master into b-file, which has a file instead of a symbolic link' '
@@ -46,7 +46,7 @@ test_expect_success 'merge master into b-file, which has a file instead of a sym
4646
'
4747

4848
test_expect_success 'the merge result must be a file' '
49-
test -f symlink
49+
test_path_is_file symlink
5050
'
5151

5252
test_expect_success 'merge b-file, which has a file instead of a symbolic link, into master' '
@@ -56,7 +56,7 @@ test_expect_success 'merge b-file, which has a file instead of a symbolic link,
5656
'
5757

5858
test_expect_success 'the merge result must be a file' '
59-
test -f symlink
59+
test_path_is_file symlink
6060
'
6161

6262
test_done

0 commit comments

Comments
 (0)