def mergeReport(self): """ _mergeReport_ read the merge report """ reportInstance = Report(self.stepName) ReportReader.xmlToJobReport(reportInstance, os.path.join(self.workingDir, self.merge_report_file)) return reportInstance
def mergeReport(self): """ _mergeReport_ read the merge report """ reportInstance = Report(self.stepName) ReportReader.xmlToJobReport( reportInstance, os.path.join(self.workingDir, self.merge_report_file)) return reportInstance
def readMultiJobReports(multiReportFile, stepName, directory): """ _readMultiJobReports_ Read a multi report and return a list of report instances indexed by it """ result = [] jobRepNode = ReportReader.xmlFileToNode(multiReportFile) for repNode in ReportReader.childrenMatching(jobRepNode, "FrameworkJobReport"): for childProcFiles in ReportReader.childrenMatching(repNode, "ChildProcessFiles"): for childRep in ReportReader.childrenMatching(childProcFiles, "ChildProcessFile"): fileName = childRep.text if directory != None: fileName = "%s/%s" % (directory, fileName) if os.path.exists(fileName): reportInstance = Report(stepName) ReportReader.xmlToJobReport(reportInstance, fileName) result.append(reportInstance) return result