Make tests print the log on failures.

This is very important for pbuilder, as it cleans up after build,
so no test logs will be present, only whatever was output to stdout.