Skip to content

Commit 3b8724b

Browse files
john-caigitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3294234 commit 3b8724b

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

t/t7101-reset-empty-subdirs.sh

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,57 +10,57 @@ TEST_PASSES_SANITIZE_LEAK=true
1010
. "$TEST_DIRECTORY"/lib-diff-data.sh
1111

1212
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
1717
'
1818

1919
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
3131
'
3232

3333
test_expect_success 'resetting tree HEAD^' '
34-
git reset --hard HEAD^
34+
git reset --hard HEAD^
3535
'
3636

3737
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
4040
'
4141

4242
test_expect_success 'checking lack of path1/path2/COPYING' '
43-
! test -f path1/path2/COPYING
43+
! test -f path1/path2/COPYING
4444
'
4545

4646
test_expect_success 'checking lack of path1/COPYING' '
47-
! test -f path1/COPYING
47+
! test -f path1/COPYING
4848
'
4949

5050
test_expect_success 'checking lack of COPYING' '
51-
! test -f COPYING
51+
! test -f COPYING
5252
'
5353

5454
test_expect_success 'checking checking lack of path1/COPYING-TOO' '
55-
! test -f path0/COPYING-TOO
55+
! test -f path0/COPYING-TOO
5656
'
5757

5858
test_expect_success 'checking lack of path1/path2' '
59-
! test -d path1/path2
59+
! test -d path1/path2
6060
'
6161

6262
test_expect_success 'checking lack of path1' '
63-
! test -d path1
63+
! test -d path1
6464
'
6565

6666
test_done

0 commit comments

Comments
 (0)