t7101-reset-empty-subdirs: 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
3b8724bce65edea7abba480929457ef794ec753e
1 file changed
+24
-24
t/t7101-reset-empty-subdirs.sh
+24
-24
@@ -10,57 +10,57 @@ TEST_PASSES_SANITIZE_LEAK=true
10
. "$TEST_DIRECTORY"/lib-diff-data.sh
11
12
test_expect_success 'creating initial files' '
13
- mkdir path0 &&
14
- COPYING_test_data >path0/COPYING &&
15
- git add path0/COPYING &&
16
- git commit -m add -a
13
+ mkdir path0 &&
14
+ COPYING_test_data >path0/COPYING &&
15
+ git add path0/COPYING &&
16
+ git commit -m add -a
17
'
18
19
test_expect_success 'creating second files' '
20
- mkdir path1 &&
21
- mkdir path1/path2 &&
22
- COPYING_test_data >path1/path2/COPYING &&
23
- COPYING_test_data >path1/COPYING &&
24
- COPYING_test_data >COPYING &&
25
- COPYING_test_data >path0/COPYING-TOO &&
26
- git add path1/path2/COPYING &&
27
- git add path1/COPYING &&
28
- git add COPYING &&
29
- git add path0/COPYING-TOO &&
30
- git commit -m change -a
20
+ mkdir path1 &&
21
+ mkdir path1/path2 &&
22
+ COPYING_test_data >path1/path2/COPYING &&
23
+ COPYING_test_data >path1/COPYING &&
24
+ COPYING_test_data >COPYING &&
25
+ COPYING_test_data >path0/COPYING-TOO &&
26
+ git add path1/path2/COPYING &&
27
+ git add path1/COPYING &&
28
+ git add COPYING &&
29
+ git add path0/COPYING-TOO &&
30
+ git commit -m change -a
31
'
32
33
test_expect_success 'resetting tree HEAD^' '
34
- git reset --hard HEAD^
34
+ git reset --hard HEAD^
35
'
36
37
test_expect_success 'checking initial files exist after rewind' '
38
- test -d path0 &&
39
- test -f path0/COPYING
38
+ test -d path0 &&
39
+ test -f path0/COPYING
40
'
41
42
test_expect_success 'checking lack of path1/path2/COPYING' '
43
- ! test -f path1/path2/COPYING
43
+ ! test -f path1/path2/COPYING
44
'
45
46
test_expect_success 'checking lack of path1/COPYING' '
47
- ! test -f path1/COPYING
47
+ ! test -f path1/COPYING
48
'
49
50
test_expect_success 'checking lack of COPYING' '
51
- ! test -f COPYING
51
+ ! test -f COPYING
52
'
53
54
test_expect_success 'checking checking lack of path1/COPYING-TOO' '
55
- ! test -f path0/COPYING-TOO
55
+ ! test -f path0/COPYING-TOO
56
'
57
58
test_expect_success 'checking lack of path1/path2' '
59
- ! test -d path1/path2
59
+ ! test -d path1/path2
60
'
61
62
test_expect_success 'checking lack of path1' '
63
- ! test -d path1
63
+ ! test -d path1
64
'
65
66
test_done