Skip to contentSkip to conversation

Xenstore testsuite robustness: save output rather than rerun on failure.

PATCH In review Rusty Russell 2 participants 2 messages Aug 21, 2005 – Aug 23, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

# HG changeset patch
# User Rusty Russell <[email protected]>
# Node ID 07b986fec159c8bd18f7f109ca78c5b1250ee07c
# Parent 68ace2715cbc988c27c494a44a3154dbfcf83d0e
Rather than re-run on failure, record and replay (needed for occasional failures)

tools/xenstore/testsuite/test.sh +2 -3
diff -r 68ace2715cbc -r 07b986fec159 tools/xenstore/testsuite/test.sh
@@ -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
Signature · 1 line
A bad analogy is like a leaky screwdriver -- Richard Braakman
#1 lore raw

Thanks!

Quoted 39 lines · Rusty Russell

"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.

# HG changeset patch
# User Rusty Russell <[email protected]>
# 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

tools/xenstore/testsuite/test.sh Sun Aug 21 06:29:47 2005 renamed from tools/xenstore/testsuite/test.sh Sat Aug 20 05:53:26 2005 +2 -4
@@ -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
[email protected]
http://lists.xensource.com/xen-devel