Skip to content

Commit

Permalink
t/README: Add a section about skipping tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Ævar Arnfjörð Bjarmason authored and Junio C Hamano committed Jul 5, 2010
1 parent 97d9fd9 commit b5500d1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions t/README
Original file line number Diff line number Diff line change
Expand Up @@ -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
------------------
Expand Down

0 comments on commit b5500d1

Please sign in to comment.