write console output to temporary folder in any case the test case fails, even if no traceback is raised