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 <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ramsay Jones committed Sep 1, 2012 at 19:10 UTC bb8eb64ef7154dce7d4870f134561729e68ca8c5
1 file changed +15 -16
t/t3902-quoted.sh
+15 -16
@@ -16,9 +16,8 @@ echo foo 2>/dev/null > "Name and an${HT}HT"
16 if ! test -f "Name and an${HT}HT"
17 then
18 # 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
21 fi
22
23 for_each_name () {
@@ -31,7 +30,7 @@ for_each_name () {
30 done
31 }
32
34 -test_expect_success TABS_IN_FILENAMES 'setup' '
33 +test_expect_success 'setup' '
34
35 mkdir "$FN" &&
36 for_each_name "echo initial >\"\$name\"" &&
@@ -45,7 +44,7 @@ test_expect_success TABS_IN_FILENAMES 'setup' '
44
45 '
46
48 -test_expect_success TABS_IN_FILENAMES 'setup expected files' '
47 +test_expect_success 'setup expected files' '
48 cat >expect.quoted <<\EOF &&
49 Name
50 "Name and a\nLF"
@@ -75,74 +74,74 @@ With SP in it
74 EOF
75 '
76
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' '
78
79 git ls-files >current && test_cmp expect.quoted current
80
81 '
82
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' '
84
85 git diff --name-only >current &&
86 test_cmp expect.quoted current
87
88 '
89
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' '
91
92 git diff --name-only HEAD >current &&
93 test_cmp expect.quoted current
94
95 '
96
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' '
98
99 git diff --name-only HEAD^ HEAD >current &&
100 test_cmp expect.quoted current
101
102 '
103
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' '
105
106 git ls-tree --name-only -r HEAD >current &&
107 test_cmp expect.quoted current
108
109 '
110
112 -test_expect_success TABS_IN_FILENAMES 'setting core.quotepath' '
111 +test_expect_success 'setting core.quotepath' '
112
113 git config --bool core.quotepath false
114
115 '
116
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' '
118
119 git ls-files >current && test_cmp expect.raw current
120
121 '
122
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' '
124
125 git diff --name-only >current &&
126 test_cmp expect.raw current
127
128 '
129
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' '
131
132 git diff --name-only HEAD >current &&
133 test_cmp expect.raw current
134
135 '
136
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' '
138
139 git diff --name-only HEAD^ HEAD >current &&
140 test_cmp expect.raw current
141
142 '
143
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' '
145
146 git ls-tree --name-only -r HEAD >current &&
147 test_cmp expect.raw current