Xenstore testsuite robustness: save output rather than rerun on failure.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 23 Aug 2005 19:58:59 +0000 (19:58 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 23 Aug 2005 19:58:59 +0000 (19:58 +0000)
"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>
tools/xenstore/testsuite/test.sh

index 077c843f5af2a92845eb4a683c0d1f5d83bf0589..088b4819111141c4b8608f0c165d3e25a1d780ca 100755 (executable)
@@ -52,11 +52,10 @@ for f in testsuite/[0-9]*.test $SLOWTESTS; do
     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