lib-patch-mode tests: 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>
This commit is contained in:
Ævar Arnfjörð Bjarmason
2010-08-13 20:40:06 +00:00
committed by Junio C Hamano
parent f04593199b
commit f2f7b6a550
4 changed files with 23 additions and 28 deletions

View File

@ -2,11 +2,6 @@
. ./test-lib.sh
if ! test_have_prereq PERL; then
skip_all='skipping --patch tests, perl not available'
test_done
fi
set_state () {
echo "$3" > "$1" &&
git add "$1" &&