From: cl349@firebug.cl.cam.ac.uk Date: Tue, 23 Aug 2005 19:58:59 +0000 (+0000) Subject: Xenstore testsuite robustness: save output rather than rerun on failure. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16866 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e184ac751a84cab434ce3fd525d77b0b95a89b09;p=xen.git 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 Signed-off-by: Christian Limpach --- diff --git a/tools/xenstore/testsuite/test.sh b/tools/xenstore/testsuite/test.sh index 077c843f5a..088b481911 100755 --- a/tools/xenstore/testsuite/test.sh +++ b/tools/xenstore/testsuite/test.sh @@ -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