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 <johncai86@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
John Cai committed
May 18, 2023 at 20:03 UTC
0aa0266c4b6ad147c3275e078db547b69353b7ce
1 file changed
+17
-17
t/t3700-add.sh
+17
-17
@@ -24,17 +24,17 @@ test_mode_in_index () {
24
esac
25
}
26
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
+'
30
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
+'
34
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
+'
38
39
BATCH_CONFIGURATION='-c core.fsync=loose-object -c core.fsyncmethod=batch'
40
@@ -284,14 +284,14 @@ test_expect_success POSIXPERM,SANITY 'git add (add.ignore-errors = false)' '
284
rm -f foo2
285
286
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
295
'
296
rm -f foo2
297