From 0d66711ffe40586676185428f322fa38683674bf Mon Sep 17 00:00:00 2001 From: hardy Date: Tue, 1 Mar 2022 16:41:04 +0100 Subject: [PATCH] add retx checkers to end-to-end tests --- ci-scripts/cls_oaicitest.py | 2 +- ci-scripts/main.py | 8 ++++++++ ci-scripts/ran.py | 7 ++++--- ci-scripts/xml_files/fr1_sa_quectel.xml | 2 ++ ci-scripts/xml_files/fr1_sa_quectel_162prb.xml | 2 ++ ci-scripts/xml_files/fr1_sa_quectel_stages.xml | 2 ++ 6 files changed, 19 insertions(+), 4 deletions(-) diff --git a/ci-scripts/cls_oaicitest.py b/ci-scripts/cls_oaicitest.py index d3f4191c02..9d619ed633 100644 --- a/ci-scripts/cls_oaicitest.py +++ b/ci-scripts/cls_oaicitest.py @@ -3128,7 +3128,7 @@ class OaiCiTest(): fileCheck = re.search('enb_', str(RAN.eNBLogFiles[0])) if fileCheck is not None: SSH.copyin(RAN.eNBIPAddress, RAN.eNBUserName, RAN.eNBPassword, RAN.eNBSourceCodePath + '/cmake_targets/' + RAN.eNBLogFiles[0], '.') - logStatus = RAN.AnalyzeLogFile_eNB(RAN.eNBLogFiles[0]) + logStatus = RAN.AnalyzeLogFile_eNB(RAN.eNBLogFiles[0],HTML, RAN.ran_checkers) if logStatus < 0: result = logStatus RAN.eNBLogFiles[0]='' diff --git a/ci-scripts/main.py b/ci-scripts/main.py index eb9e60a83e..fd99c0817b 100644 --- a/ci-scripts/main.py +++ b/ci-scripts/main.py @@ -199,6 +199,14 @@ def GetParametersFromXML(action): else: RAN.eNB_serverId[RAN.eNB_instance]=eNB_serverId + #retx checkers + string_field=test.findtext('d_retx_th') + if (string_field is not None): + RAN.ran_checkers['d_retx_th'] = [float(x) for x in string_field.split(',')] + string_field=test.findtext('u_retx_th') + if (string_field is not None): + RAN.ran_checkers['u_retx_th'] = [float(x) for x in string_field.split(',')] + #local variable air_interface air_interface = test.findtext('air_interface') if (air_interface is None) or (air_interface.lower() not in ['nr','lte','ocp']): diff --git a/ci-scripts/ran.py b/ci-scripts/ran.py index 1d81862647..bfea2aa9f0 100644 --- a/ci-scripts/ran.py +++ b/ci-scripts/ran.py @@ -97,7 +97,8 @@ class RANManagement(): self.eNB_Trace = '' #if 'yes', Tshark will be launched at initialization self.eNB_Stats = '' #if 'yes', Statistics Monitor will be launched at initialization self.USRPIPAddress = '' - + #checkers from xml + self.ran_checkers={} #----------------------------------------------------------- @@ -680,7 +681,7 @@ class RANManagement(): mySSH.close() mySSH.copyin(lIpAddr, lUserName, lPassWord, lSourcePath + '/cmake_targets/' + extracted_log_file, '.') logging.debug('\u001B[1m Analyzing eNB replay logfile \u001B[0m') - logStatus = self.AnalyzeLogFile_eNB(extracted_log_file, HTML) + logStatus = self.AnalyzeLogFile_eNB(extracted_log_file, HTML, self.ran_checkers) HTML.CreateHtmlTestRow(self.runtime_stats, 'OK', CONST.ALL_PROCESSES_OK) self.eNBLogFiles[int(self.eNB_instance)] = '' else: @@ -713,7 +714,7 @@ class RANManagement(): # mySSH.copyout(self.eNBIPAddress, self.eNBUserName, self.eNBPassword, './' + fileToAnalyze, self.eNBSourceCodePath + '/cmake_targets/') logging.debug('\u001B[1m Analyzing ' + nodeB_prefix + 'NB logfile \u001B[0m ' + fileToAnalyze) - logStatus = self.AnalyzeLogFile_eNB(fileToAnalyze, HTML) + logStatus = self.AnalyzeLogFile_eNB(fileToAnalyze, HTML, self.ran_checkers) if (logStatus < 0): HTML.CreateHtmlTestRow('N/A', 'KO', logStatus) #display rt stats for gNB only diff --git a/ci-scripts/xml_files/fr1_sa_quectel.xml b/ci-scripts/xml_files/fr1_sa_quectel.xml index 9f2661f5c6..cc44bdf051 100644 --- a/ci-scripts/xml_files/fr1_sa_quectel.xml +++ b/ci-scripts/xml_files/fr1_sa_quectel.xml @@ -143,6 +143,8 @@ 0 0 nr + 5,50,100,100 + 5,50,100,100 diff --git a/ci-scripts/xml_files/fr1_sa_quectel_162prb.xml b/ci-scripts/xml_files/fr1_sa_quectel_162prb.xml index f43347d7b6..776486013d 100644 --- a/ci-scripts/xml_files/fr1_sa_quectel_162prb.xml +++ b/ci-scripts/xml_files/fr1_sa_quectel_162prb.xml @@ -133,6 +133,8 @@ 0 0 nr + 5,50,100,100 + 5,50,100,100 diff --git a/ci-scripts/xml_files/fr1_sa_quectel_stages.xml b/ci-scripts/xml_files/fr1_sa_quectel_stages.xml index f5a07d7589..20225b0a1a 100644 --- a/ci-scripts/xml_files/fr1_sa_quectel_stages.xml +++ b/ci-scripts/xml_files/fr1_sa_quectel_stages.xml @@ -169,6 +169,8 @@ 0 0 nr + 5,50,100,100 + 5,50,100,100