All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Limpach <christian.limpach@gmail.com>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Xen Mailing List <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] Xenstore testsuite robustness: save output rather than rerun on failure.
Date: Tue, 23 Aug 2005 20:59:17 +0100	[thread overview]
Message-ID: <3d8eece2050823125941faeb0@mail.gmail.com> (raw)
In-Reply-To: <1124608205.27838.9.camel@localhost.localdomain>

Thanks!

On 8/21/05, Rusty Russell <rusty@rustcorp.com.au> wrote:
> "make check" reruns a test which fails with more verbosity.  If the test
> fails intermittently, that doesn't work well: save the output and simply
> dump it if the test fails.
> 
> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
> 
> # HG changeset patch
> # User Rusty Russell <rusty@rustcorp.com.au>
> # Node ID 07b986fec159c8bd18f7f109ca78c5b1250ee07c
> # Parent  68ace2715cbc988c27c494a44a3154dbfcf83d0e
> Rather than re-run on failure, record and replay (needed for occasional failures)
> 
> diff -r 68ace2715cbc -r 07b986fec159 tools/xenstore/testsuite/test.sh
> --- a/tools/xenstore/testsuite/test.sh  Sat Aug 20 05:53:26 2005
> +++ b/tools/xenstore/testsuite/test.sh  Sun Aug 21 06:29:47 2005
> @@ -52,11 +52,10 @@
>     case `basename $f` in $MATCH) RUN=1;; esac
>     [ -n "$RUN" ] || continue
> 
> -    if run_test $f > /dev/null; then
> +    if run_test $f -x >/tmp/out; then
>        echo -n .
>     else
> -       echo Test $f failed, running verbosely...
> -       run_test $f -x || true
> +       cat /tmp/out
>        # That will have filled the screen, repeat message.
>        echo Test $f failed
>        exit 1
> 
> --
> A bad analogy is like a leaky screwdriver -- Richard Braakman
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>

      reply	other threads:[~2005-08-23 19:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-21  7:10 [PATCH] Xenstore testsuite robustness: save output rather than rerun on failure Rusty Russell
2005-08-23 19:59 ` Christian Limpach [this message]

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=3d8eece2050823125941faeb0@mail.gmail.com \
    --to=christian.limpach@gmail.com \
    --cc=Christian.Limpach@cl.cam.ac.uk \
    --cc=rusty@rustcorp.com.au \
    --cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.