From: Ralf Wildenhues Date: Tue, 10 Mar 2009 20:33:47 +0000 (+0100) Subject: Use append mode to capture parallel test output. X-Git-Tag: v1.10b~6^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=642699970e75580e0f11f5786302082e25d8f49c;p=thirdparty%2Fautomake.git Use append mode to capture parallel test output. * tests/lisp8.test: Use append mode for output from `make -j', to avoid dropped lines. * tests/parallel-tests3.test: Likewise. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index ae46e23eb..7a9d8d1aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2009-03-10 Ralf Wildenhues + Use append mode to capture parallel test output. + * tests/lisp8.test: Use append mode for output from `make -j', + to avoid dropped lines. + * tests/parallel-tests3.test: Likewise. + parallel-tests: Fix summary output. * lib/am/check.am (am__text_box): Fix unportable sed script, replacing `\n' in the right hand side of an `s' command with diff --git a/tests/lisp8.test b/tests/lisp8.test index 578cd9c26..3e4981c96 100755 --- a/tests/lisp8.test +++ b/tests/lisp8.test @@ -39,7 +39,8 @@ $AUTOCONF $AUTOMAKE --add-missing ./configure -$MAKE -j >stdout || { cat stdout; Exit 1; } +: >stdout +$MAKE -j >>stdout || { cat stdout; Exit 1; } cat stdout test 1 -eq `grep 'Warnings can be ignored' stdout | wc -l` @@ -51,7 +52,8 @@ test -f elc-stamp rm -f am-*.elc -$MAKE -j >stdout +: >stdout +$MAKE -j >>stdout cat stdout test 1 -eq `grep 'Warnings can be ignored' stdout | wc -l` diff --git a/tests/parallel-tests3.test b/tests/parallel-tests3.test index c53edee44..362f369c1 100755 --- a/tests/parallel-tests3.test +++ b/tests/parallel-tests3.test @@ -61,7 +61,10 @@ cd serial $MAKE -j1 check & cd ../parallel $sleep -$MAKE -j4 check > stdout +# Use append mode here to avoid dropping output. +# Yes, this actually happens. +: >stdout +$MAKE -j4 check >> stdout cd .. kill $! cat parallel/stdout