automake-patches
[Top][All Lists]
Advanced

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

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


From: Akim Demaille
Subject: Re: [PATCH 07] Use append mode to capture parallel test output.
Date: Sat, 14 Mar 2009 13:24:28 +0100


Le 14 mars 09 à 11:56, Ralf Wildenhues a écrit :

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

Hi Ralf,

I have not understood what's going on here. Are these files running concurrently in the same pwd?

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]