def cleanup(self, options): NUnitTestSuite.instances_count -= 1 if NUnitTestSuite.instances_count == 0: # merge nunit results print("Aggregating all nunit results") output = os.path.join(options.results_directory, 'nunit_output.xml') nunit_results_merger.merge(NUnitTestSuite.output_files, output) print('Output: {}'.format(output))