From e184ac751a84cab434ce3fd525d77b0b95a89b09 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Tue, 23 Aug 2005 19:58:59 +0000 Subject: [PATCH] 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 --- tools/xenstore/testsuite/test.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.30.2