ia64/xen-unstable

changeset 6385:f34e732ed4bf

Xenstore testsuite robustness: save output rather than rerun on failure.
"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>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Tue Aug 23 19:58:59 2005 +0000 (2005-08-23)
parents c51562192ef6
children a3822cb3b2b3
files tools/xenstore/testsuite/test.sh
line diff
     1.1 --- a/tools/xenstore/testsuite/test.sh	Tue Aug 23 19:57:32 2005 +0000
     1.2 +++ b/tools/xenstore/testsuite/test.sh	Tue Aug 23 19:58:59 2005 +0000
     1.3 @@ -52,11 +52,10 @@ for f in testsuite/[0-9]*.test $SLOWTEST
     1.4      case `basename $f` in $MATCH) RUN=1;; esac
     1.5      [ -n "$RUN" ] || continue
     1.6  
     1.7 -    if run_test $f > /dev/null; then
     1.8 +    if run_test $f -x >/tmp/out; then
     1.9  	echo -n .
    1.10      else
    1.11 -	echo Test $f failed, running verbosely...
    1.12 -	run_test $f -x || true
    1.13 +	cat /tmp/out
    1.14  	# That will have filled the screen, repeat message.
    1.15  	echo Test $f failed
    1.16  	exit 1