parallel-tests: separate different logs with an empty line
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 5 May 2012 14:33:36 +0000 (16:33 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 5 May 2012 14:34:29 +0000 (16:34 +0200)
After commit v1.12-21-g5eeb366 "parallel-tests: optimize global log
creation", the log files copied in the global log are not anymore
separated by a blank line, causing unclear output like this:

  FAIL: test1
  ===========

  output from test 1
  FAIL: test2
  ===========

  output from test 2

where we would want something like this:

  FAIL: test1
  ===========

  output from test 1

  FAIL: test2
  ===========

  output from test 2

Fix this regression.

* lib/am/check.am (am__create_global_log): Print an extra empty line
after having displayed the content of a '.log' file.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/check.am

index a65fef9..838766a 100644 (file)
@@ -152,6 +152,7 @@ function rst_section(header) \
           fatal("failed to read from " $$0 ".log"); \
         print line; \
       }; \
+      printf "\n"; \
     }; \
 ## Don't leak open file descriptors, as this could cause serious
 ## problems when there are many tests (yes, even on Linux).