automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 07] Use append mode to capture parallel test output.


From: Ralf Wildenhues
Subject: [PATCH 07] Use append mode to capture parallel test output.
Date: Sat, 14 Mar 2009 11:56:15 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

D'oh.  Wonder how often we will keep encountering this.

Cheers,
Ralf

    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.

diff --git a/tests/lisp8.test b/tests/lisp8.test
index 578cd9c..3e4981c 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 c53edee..362f369 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]