unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: Pieter Praet <pieter@praet.org>,
	Dmitry Kurochkin <dmitry.kurochkin@gmail.com>,
	Ethan Glasser-Camp <glasse@cs.rpi.edu>
Cc: Notmuch Mail <notmuch@notmuchmail.org>
Subject: Re: [PATCH] test: always report missing prereqs, independent of `--verbose' option
Date: Wed, 18 Jan 2012 15:53:59 +0200	[thread overview]
Message-ID: <yf64nvtce14.fsf@taco2.nixu.fi> (raw)
In-Reply-To: <1326889181-32311-1-git-send-email-pieter@praet.org>

On Wed, 18 Jan 2012 13:19:41 +0100, Pieter Praet <pieter@praet.org> wrote:
> When tests are skipped due to missing prereqs, those prereqs are only
> displayed when running with the `--verbose' option.  This is essential
> information when troubleshooting, so always send to stdout.
> 
> ---

Instead of this the test suite could be enchanged so that
full log of the execution is stored somewhere and path
to that file is displayed at the end of test. Generally,
all output could stay available after tests exit so that
those could be investigated furtner.

(I tried to grep 'missing prerequisites' after running test
but did not find the info. the file opened for >&3 has been
deleted already?)

Now I just see huge amounts of missing prerequisites: emacs(1)
in my output (I presume that doesn't happen due to my
hack to "hide" emacs).

But well, I'm not against applying this patch -- just that
the test system starts to get so rotten touching it gives
shivers...

Tomi

> 
>  test/test-lib.sh |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/test/test-lib.sh b/test/test-lib.sh
> index d1fbc05..6560628 100644
> --- a/test/test-lib.sh
> +++ b/test/test-lib.sh
> @@ -673,8 +673,8 @@ test_skip () {
>  
>  test_check_missing_external_prereqs_ () {
>  	if test -n "$test_subtest_missing_external_prereqs_"; then
> -		say_color skip >&3 "missing prerequisites:"
> -		echo "$test_subtest_missing_external_prereqs_" >&3
> +		say_color skip >&1 "missing prerequisites:"
> +		echo "$test_subtest_missing_external_prereqs_" >&1
>  		test_report_skip_ "$@"
>  	else
>  		false
> -- 
> 1.7.8.1

  reply	other threads:[~2012-01-18 13:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-16 17:16 [PATCH] Document the dependency on dtach in the test suite Ethan Glasser-Camp
2012-01-16 17:55 ` Dmitry Kurochkin
2012-01-18 12:19   ` [PATCH] test: always report missing prereqs, independent of `--verbose' option Pieter Praet
2012-01-18 13:53     ` Tomi Ollila [this message]
2012-01-20  0:24       ` Pieter Praet
2012-01-20  0:33         ` Pieter Praet
2012-02-21  3:27     ` David Bremner

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

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yf64nvtce14.fsf@taco2.nixu.fi \
    --to=tomi.ollila@iki.fi \
    --cc=dmitry.kurochkin@gmail.com \
    --cc=glasse@cs.rpi.edu \
    --cc=notmuch@notmuchmail.org \
    --cc=pieter@praet.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).