Add stdout from bash processes to test reports

Its quite hard to debug what went wrong if a test fails so it would be very
helpful to have a record somewhere of the stdout from bash.  This patch
appends it to the test report.