[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] Xenstore testsuite robustness: save output rather than rerun on failure.


  • To: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
  • From: Christian Limpach <christian.limpach@xxxxxxxxx>
  • Date: Tue, 23 Aug 2005 20:59:17 +0100
  • Cc: Xen Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 23 Aug 2005 19:57:28 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=seXueoNn7GtcSisabg7n8nN/mK5j8tSxzqWPlnLGLPYWI5ISw2PY0ixEpXwkwniOFX+pArhr2nH7K9a2MimGzAQuTeOpCXnPcHaUcd6Ie0B4YJhgFLHEhTacjEpVDL7eLDl75OzvcxeQDB/PM1qAZXLl0XNqA8Wtqhn0R8Zp1sY=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Thanks!

On 8/21/05, Rusty Russell <rusty@xxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx>
> 
> # HG changeset patch
> # User Rusty Russell <rusty@xxxxxxxxxxxxxxx>
> # 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@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.