From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
To: Michael J Gruber <git@drmicha.warpmail.net>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>
Subject: Re: [PATCH] test-lib: TAP compliance for skipping tests on request
Date: Fri, 9 Jul 2010 19:36:47 +0000 [thread overview]
Message-ID: <AANLkTiml1lQlSBDGgUg9scsvsaffDT2n405USmsSIm1n@mail.gmail.com> (raw)
In-Reply-To: <97f41d49b6e374d3e66908f3c62844da27312501.1278673984.git.git@drmicha.warpmail.net>
On Fri, Jul 9, 2010 at 11:15, Michael J Gruber <git@drmicha.warpmail.net> wrote:
> Make the output TAP compliant for tests skipped on request (GI_SKIP_TESTS).
That "GI_SKIP_TESTS" has a T-deficit.
> Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
> ---
> We may want to better spell out the reasons, but I think
> it's good enough like this for *explicitly* skipped tests.
>
> t/test-lib.sh | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/t/test-lib.sh b/t/test-lib.sh
> index 8e3de53..2076271 100644
> --- a/t/test-lib.sh
> +++ b/t/test-lib.sh
> @@ -395,7 +395,7 @@ test_skip () {
> case "$to_skip" in
> t)
> say_color skip >&3 "skipping test: $@"
> - say_color skip "ok $test_count: # skip $1"
> + say_color skip "ok $test_count # SKIP $1"
Good catch with the s/://, but I think the lower-case "skip" should
stay that way. At least that's what Test::More does:
$ perl -MTest::More=tests,2 -E 'SKIP: { skip "no can do", 1 } pass "can do"'
1..2
ok 1 # skip no can do
ok 2 - can do
It only uses upper-case on skip-all. I.e. when part of the plan line:
$ perl -MTest::More=skip_all,"this platform sucks" -e1
1..0 # SKIP this platform sucks
Maybe I've missed something, or Test::More has a bug.
> : true
> ;;
> *)
> @@ -838,7 +838,7 @@ done
> case "$to_skip" in
> t)
> say_color skip >&3 "skipping test $this_test altogether"
> - say_color skip "skip all tests in $this_test"
> + skip_all="skip all tests in $this_test"
> test_done
> esac
Good catch. I missed that (again) in my "tests: Use skip_all=<reason>
to skip tests" patch.
next prev parent reply other threads:[~2010-07-09 19:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-09 11:15 [PATCH] test-lib: TAP compliance for skipping tests on request Michael J Gruber
2010-07-09 19:36 ` Ævar Arnfjörð Bjarmason [this message]
2010-07-12 10:33 ` [PATCHv2] " Michael J Gruber
2010-07-12 11:07 ` Ævar Arnfjörð Bjarmason
2010-07-12 16:44 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTiml1lQlSBDGgUg9scsvsaffDT2n405USmsSIm1n@mail.gmail.com \
--to=avarab@gmail.com \
--cc=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).