* [PATCH] Xenstore testsuite robustness: save output rather than rerun on failure.
@ 2005-08-21 7:10 Rusty Russell
2005-08-23 19:59 ` Christian Limpach
0 siblings, 1 reply; 2+ messages in thread
From: Rusty Russell @ 2005-08-21 7:10 UTC (permalink / raw)
To: Xen Mailing List
"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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Xenstore testsuite robustness: save output rather than rerun on failure.
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
0 siblings, 0 replies; 2+ messages in thread
From: Christian Limpach @ 2005-08-23 19:59 UTC (permalink / raw)
To: Rusty Russell; +Cc: Xen Mailing List
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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-23 19:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.