'Static method for merging the result back into the main
result object.'

def join_results(result, data):

    (failures, errors, tests_run, output) = data
    if output:
        result.stream.write(output)
    result.errors.extend(errors)
    result.failures.extend(failures)
    result.testsRun += tests_run
