t/t7005-editor: change from skip_all=* to prereq skip
Change this test to skip test with test prerequisites, and to do setup work in tests. This improves the skipped statistics on platforms where the test isn't run. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
Aug 11, 2010 at 19:04 UTC
fab68aa2bab70198c9a57890a30ea0250f99bc9d
1 file changed
+5
-5
t/t7005-editor.sh
+5
-5
@@ -111,13 +111,13 @@ do
111
'
112
done
113
114
-if ! echo 'echo space > "$1"' > "e space.sh"
114
+if echo 'echo space > "$1"' > "e space.sh"
115
then
116
- skip_all="Skipping; FS does not support spaces in filenames"
117
- test_done
116
+ # FS supports spaces in filenames
117
+ test_set_prereq SPACES_IN_FILENAMES
118
fi
119
120
-test_expect_success 'editor with a space' '
120
+test_expect_success SPACES_IN_FILENAMES 'editor with a space' '
121
122
chmod a+x "e space.sh" &&
123
GIT_EDITOR="./e\ space.sh" git commit --amend &&
@@ -126,7 +126,7 @@ test_expect_success 'editor with a space' '
126
'
127
128
unset GIT_EDITOR
129
-test_expect_success 'core.editor with a space' '
129
+test_expect_success SPACES_IN_FILENAMES 'core.editor with a space' '
130
131
git config core.editor \"./e\ space.sh\" &&
132
git commit --amend &&