From b5500d16cd1021bc1430ad019512c636dd3311d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 2 Jul 2010 14:59:48 +0000 Subject: [PATCH] t/README: Add a section about skipping tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- t/README | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/t/README b/t/README index 04ad927c66..4079635879 100644 --- a/t/README +++ b/t/README @@ -231,6 +231,18 @@ This test harness library does the following things: consistently when command line arguments --verbose (or -v), --debug (or -d), and --immediate (or -i) is given. +Skipping tests +-------------- + +If you need to skip all the remaining tests you should set skip_all +and immediately call test_done. The string you give to skip_all will +be used as an explanation for why the test was skipped. for instance: + + if ! test_have_prereq PERL + then + skip_all='skipping perl interface tests, perl not available' + test_done + fi End with test_done ------------------ -- 2.11.4.GIT