]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Use append mode to capture parallel test output.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 10 Mar 2009 20:33:47 +0000 (21:33 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 14 Mar 2009 09:48:46 +0000 (10:48 +0100)
* 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 <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/lisp8.test
tests/parallel-tests3.test

index ae46e23eb3a622b105ddf893bdee7016e5bedc17..7a9d8d1aa905eb2a91547f866380c12e07ff6e60 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-03-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       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
index 578cd9c264c2319f0ed0bf1cabbb954e6ce9d20e..3e4981c9663f55db7a5142d6d6478a0a8542b874 100755 (executable)
@@ -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`
index c53edee443e0828a93c737777fcdded42d4c36a6..362f369c10ff2f80f26da267df6512388e882a80 100755 (executable)
@@ -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