def update_from_ica(self, log_path): super(PerfTestRun, self).update_from_ica(log_path) parsed_perf_log = None if self.suite.lower() == 'fio-singledisk': parsed_perf_log = FIOLogsReader(self.perf_path).process_logs() if self.suite.lower() == 'fio-raid0-4disks': parsed_perf_log = FIOLogsReaderRaid(self.perf_path).process_logs() elif self.suite.lower() in ['ntttcp', 'tcp']: parsed_perf_log = NTTTCPLogsReader(self.perf_path).process_logs() elif self.suite.lower() in ['iperf', 'udp']: parsed_perf_log = IPERFLogsReader(self.perf_path).process_logs() elif self.suite.lower() in ['latency']: parsed_perf_log = LatencyLogsReader(self.perf_path).process_logs() tests_cases = dict() test_index = 0 for perf_test in parsed_perf_log: test_case = deepcopy(self.test_cases) test_case.values()[0].perf_dict = perf_test test_index += 1 tests_cases.update({ test_case.keys()[0] + str(test_index): test_case.values()[0] }) self.test_cases = tests_cases
def update_from_ica(self, log_path): super(PerfTestRun, self).update_from_ica(log_path) parsed_perf_log = None if self.suite.lower() == 'fio': parsed_perf_log = FIOLogsReader(self.perf_path).process_logs() elif self.suite.lower() == 'ntttcp': parsed_perf_log = NTTTCPLogsReader(self.perf_path).process_logs() elif self.suite.lower() == 'iperf': parsed_perf_log = IPERFLogsReader(self.perf_path).process_logs() tests_cases = dict() test_index = 0 for perf_test in parsed_perf_log: test_case = deepcopy(self.test_cases) test_case.values()[0].perf_dict = perf_test test_index += 1 tests_cases.update( {test_case.keys()[0] + str(test_index): test_case.values()[0]}) self.test_cases = tests_cases
def update_from_ica(self, log_path): super(PerfTestRun, self).update_from_ica(log_path) parsed_perf_log = None if self.suite.lower() == 'fio': parsed_perf_log = FIOLogsReader(self.perf_path).process_logs() parsed_perf_log = sorted(parsed_perf_log, key=lambda column: (column['QDepth'])) elif self.suite.lower() == 'ntttcp': parsed_perf_log = NTTTCPLogsReader(self.perf_path).process_logs() parsed_perf_log = sorted( parsed_perf_log, key=lambda column: (column['IPVersion'], column['#test_connections'])) tests_cases = dict() test_index = 0 for perf_test in parsed_perf_log: test_case = deepcopy(self.test_cases) test_case.values()[0].perf_dict = perf_test test_index += 1 tests_cases.update( {test_case.keys()[0] + str(test_index): test_case.values()[0]}) self.test_cases = tests_cases