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