Skip to content

Commit 0aa0266

Browse files
john-caigitster
authored andcommitted
t3700-add: 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 0a6cb5c commit 0aa0266

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

t/t3700-add.sh

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ test_mode_in_index () {
2424
esac
2525
}
2626

27-
test_expect_success \
28-
'Test of git add' \
29-
'touch foo && git add foo'
27+
test_expect_success 'Test of git add' '
28+
touch foo && git add foo
29+
'
3030

31-
test_expect_success \
32-
'Post-check that foo is in the index' \
33-
'git ls-files foo | grep foo'
31+
test_expect_success 'Post-check that foo is in the index' '
32+
git ls-files foo | grep foo
33+
'
3434

35-
test_expect_success \
36-
'Test that "git add -- -q" works' \
37-
'touch -- -q && git add -- -q'
35+
test_expect_success 'Test that "git add -- -q" works' '
36+
touch -- -q && git add -- -q
37+
'
3838

3939
BATCH_CONFIGURATION='-c core.fsync=loose-object -c core.fsyncmethod=batch'
4040

@@ -284,14 +284,14 @@ test_expect_success POSIXPERM,SANITY 'git add (add.ignore-errors = false)' '
284284
rm -f foo2
285285

286286
test_expect_success POSIXPERM,SANITY '--no-ignore-errors overrides config' '
287-
git config add.ignore-errors 1 &&
288-
git reset --hard &&
289-
date >foo1 &&
290-
date >foo2 &&
291-
chmod 0 foo2 &&
292-
test_must_fail git add --verbose --no-ignore-errors . &&
293-
! ( git ls-files foo1 | grep foo1 ) &&
294-
git config add.ignore-errors 0
287+
git config add.ignore-errors 1 &&
288+
git reset --hard &&
289+
date >foo1 &&
290+
date >foo2 &&
291+
chmod 0 foo2 &&
292+
test_must_fail git add --verbose --no-ignore-errors . &&
293+
! ( git ls-files foo1 | grep foo1 ) &&
294+
git config add.ignore-errors 0
295295
'
296296
rm -f foo2
297297

0 commit comments

Comments
 (0)