tests: Log and display output from tests when run in parallel.
authorJustus Winter <justus@g10code.com>
Tue, 8 Nov 2016 14:54:56 +0000 (15:54 +0100)
committerJustus Winter <justus@g10code.com>
Tue, 8 Nov 2016 15:03:16 +0000 (16:03 +0100)
commit2a7615c48ed79e6b28710cc293ce30c812b2e5b0
tree34838c02efe1f6a967f5317630d8ee00d100d1c0
parent4dd4801bfa4c3f7ba279b3d171a8ed299dbffaaa
tests: Log and display output from tests when run in parallel.

* tests/openpgp/run-tests.scm (test): Add field 'logfd'.
(test::new, test::set-*): Adapt accordingly.
(test::set-logfd): New function.
(test::open-log-file): Likewise.
(test::run-sync): Use the new function.
(test::run-async): Likewise.
(test::report): Replay the log.
(run-tests-parallel): Reverse the results to restore the original
order.

Signed-off-by: Justus Winter <justus@g10code.com>
tests/openpgp/run-tests.scm