Skip to content

Commit 1afebc9

Browse files
john-caigitster
authored andcommitted
t4206-log-follow-harder-copies: modernize test format
Some tests still use the old format with four spaces indentation. Standardize the tests to the new format with tab indentation. Signed-off-by: John Cai <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3da9be9 commit 1afebc9

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

t/t4206-log-follow-harder-copies.sh

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,29 @@ Line 2
1616
Line 3
1717
'
1818

19-
test_expect_success \
20-
'add a file path0 and commit.' \
21-
'git add path0 &&
22-
git commit -m "Add path0"'
19+
test_expect_success 'add a file path0 and commit.' '
20+
git add path0 &&
21+
git commit -m "Add path0"
22+
'
2323

2424
echo >path0 'New line 1
2525
New line 2
2626
New line 3
2727
'
28-
test_expect_success \
29-
'Change path0.' \
30-
'git add path0 &&
31-
git commit -m "Change path0"'
28+
test_expect_success 'Change path0.' '
29+
git add path0 &&
30+
git commit -m "Change path0"
31+
'
3232

3333
cat <path0 >path1
34-
test_expect_success \
35-
'copy path0 to path1.' \
36-
'git add path1 &&
37-
git commit -m "Copy path1 from path0"'
34+
test_expect_success 'copy path0 to path1.' '
35+
git add path1 &&
36+
git commit -m "Copy path1 from path0"
37+
'
3838

39-
test_expect_success \
40-
'find the copy path0 -> path1 harder' \
41-
'git log --follow --name-status --pretty="format:%s" path1 > current'
39+
test_expect_success 'find the copy path0 -> path1 harder' '
40+
git log --follow --name-status --pretty="format:%s" path1 > current
41+
'
4242

4343
cat >expected <<\EOF
4444
Copy path1 from path0
@@ -51,8 +51,8 @@ Add path0
5151
A path0
5252
EOF
5353

54-
test_expect_success \
55-
'validate the output.' \
56-
'compare_diff_patch current expected'
54+
test_expect_success 'validate the output.' '
55+
compare_diff_patch current expected
56+
'
5757

5858
test_done

0 commit comments

Comments
 (0)