Skip to content

Commit bb8eb64

Browse files
Ramsay Jonesgitster
authored andcommitted
t3902-*.sh: Skip all tests rather than each test
Each test in this file is skipped if the TABS_IN_FILENAMES test prerequisite is set. Use the 'skip_all' facility at the head of the file to skip all of the tests instead. Signed-off-by: Ramsay Jones <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 46d9847 commit bb8eb64

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

t/t3902-quoted.sh

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ echo foo 2>/dev/null > "Name and an${HT}HT"
1616
if ! test -f "Name and an${HT}HT"
1717
then
1818
# FAT/NTFS does not allow tabs in filenames
19-
say 'Your filesystem does not allow tabs in filenames'
20-
else
21-
test_set_prereq TABS_IN_FILENAMES
19+
skip_all='Your filesystem does not allow tabs in filenames'
20+
test_done
2221
fi
2322

2423
for_each_name () {
@@ -31,7 +30,7 @@ for_each_name () {
3130
done
3231
}
3332

34-
test_expect_success TABS_IN_FILENAMES 'setup' '
33+
test_expect_success 'setup' '
3534
3635
mkdir "$FN" &&
3736
for_each_name "echo initial >\"\$name\"" &&
@@ -45,7 +44,7 @@ test_expect_success TABS_IN_FILENAMES 'setup' '
4544
4645
'
4746

48-
test_expect_success TABS_IN_FILENAMES 'setup expected files' '
47+
test_expect_success 'setup expected files' '
4948
cat >expect.quoted <<\EOF &&
5049
Name
5150
"Name and a\nLF"
@@ -75,74 +74,74 @@ With SP in it
7574
EOF
7675
'
7776

78-
test_expect_success TABS_IN_FILENAMES 'check fully quoted output from ls-files' '
77+
test_expect_success 'check fully quoted output from ls-files' '
7978
8079
git ls-files >current && test_cmp expect.quoted current
8180
8281
'
8382

84-
test_expect_success TABS_IN_FILENAMES 'check fully quoted output from diff-files' '
83+
test_expect_success 'check fully quoted output from diff-files' '
8584
8685
git diff --name-only >current &&
8786
test_cmp expect.quoted current
8887
8988
'
9089

91-
test_expect_success TABS_IN_FILENAMES 'check fully quoted output from diff-index' '
90+
test_expect_success 'check fully quoted output from diff-index' '
9291
9392
git diff --name-only HEAD >current &&
9493
test_cmp expect.quoted current
9594
9695
'
9796

98-
test_expect_success TABS_IN_FILENAMES 'check fully quoted output from diff-tree' '
97+
test_expect_success 'check fully quoted output from diff-tree' '
9998
10099
git diff --name-only HEAD^ HEAD >current &&
101100
test_cmp expect.quoted current
102101
103102
'
104103

105-
test_expect_success TABS_IN_FILENAMES 'check fully quoted output from ls-tree' '
104+
test_expect_success 'check fully quoted output from ls-tree' '
106105
107106
git ls-tree --name-only -r HEAD >current &&
108107
test_cmp expect.quoted current
109108
110109
'
111110

112-
test_expect_success TABS_IN_FILENAMES 'setting core.quotepath' '
111+
test_expect_success 'setting core.quotepath' '
113112
114113
git config --bool core.quotepath false
115114
116115
'
117116

118-
test_expect_success TABS_IN_FILENAMES 'check fully quoted output from ls-files' '
117+
test_expect_success 'check fully quoted output from ls-files' '
119118
120119
git ls-files >current && test_cmp expect.raw current
121120
122121
'
123122

124-
test_expect_success TABS_IN_FILENAMES 'check fully quoted output from diff-files' '
123+
test_expect_success 'check fully quoted output from diff-files' '
125124
126125
git diff --name-only >current &&
127126
test_cmp expect.raw current
128127
129128
'
130129

131-
test_expect_success TABS_IN_FILENAMES 'check fully quoted output from diff-index' '
130+
test_expect_success 'check fully quoted output from diff-index' '
132131
133132
git diff --name-only HEAD >current &&
134133
test_cmp expect.raw current
135134
136135
'
137136

138-
test_expect_success TABS_IN_FILENAMES 'check fully quoted output from diff-tree' '
137+
test_expect_success 'check fully quoted output from diff-tree' '
139138
140139
git diff --name-only HEAD^ HEAD >current &&
141140
test_cmp expect.raw current
142141
143142
'
144143

145-
test_expect_success TABS_IN_FILENAMES 'check fully quoted output from ls-tree' '
144+
test_expect_success 'check fully quoted output from ls-tree' '
146145
147146
git ls-tree --name-only -r HEAD >current &&
148147
test_cmp expect.raw current

0 commit comments

Comments
 (0)