diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-05-18 11:52:20 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-18 11:53:22 +0900 |
commit | c7018be5095f6ec8d2a8f7235cc28207aab64102 (patch) | |
tree | 4b11d9ed1e6142521abe4770ae750f86f5e32749 /t/t4056-diff-order.sh | |
parent | Git 2.13 (diff) | |
download | tgif-c7018be5095f6ec8d2a8f7235cc28207aab64102.tar.xz |
test: allow skipping the remainder
Because TAP output does not like to see the remainder of the test
getting skipped after running one or more tests, bf4b7219
("test-lib.sh: Add check for invalid use of 'skip_all' facility",
2012-09-01) made sure that test_done errors out when this happens.
Instead, loosen the check so that we only pretend that the rest of
the test script did not exist in such a case. We'd lose a bit of
information (i.e. TAP does not notice that we are skipping some
tests), but not very much (i.e. TAP wasn't told how many tests are
skipped anyway).
This will allow inclusion of lib-httpd.sh in the middle of a test,
which will skip the remainder of the test scripts when tests that
involve web server are declined with GIT_TEST_HTTPD=false, for
example.
Acked-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4056-diff-order.sh')
0 files changed, 0 insertions, 0 deletions