Merge branch 'rh_ci_next' of https://gitlab.eurecom.fr/oai/openairinterface5g into rh_ci_next
This commit is contained in:
+37
-23
@@ -2433,6 +2433,7 @@ class OaiCiTest():
|
||||
nrCRCOK = 0
|
||||
mbms_messages = 0
|
||||
HTML.SethtmlUEFailureMsg('')
|
||||
global_status = CONST.ALL_PROCESSES_OK
|
||||
for line in ue_log_file.readlines():
|
||||
result = re.search('nr_synchro_time', str(line))
|
||||
if result is not None:
|
||||
@@ -2626,36 +2627,36 @@ class OaiCiTest():
|
||||
else:
|
||||
statMsg = 'UE did NOT SHOW "TRIED TO PUSH MBMS DATA" message(s)'
|
||||
logging.debug('\u001B[1;30;41m ' + statMsg + ' \u001B[0m')
|
||||
global_status = OAI_UE_PROCESS_NO_MBMS_MSGS
|
||||
HTML.SethtmlUEFailureMsg(HTML.GethtmlUEFailureMsg() + statMsg + '\n')
|
||||
if foundSegFault:
|
||||
logging.debug('\u001B[1;37;41m UE ended with a Segmentation Fault! \u001B[0m')
|
||||
if not nrUEFlag:
|
||||
return CONST.OAI_UE_PROCESS_SEG_FAULT
|
||||
global_status = CONST.OAI_UE_PROCESS_SEG_FAULT
|
||||
else:
|
||||
if not frequency_found:
|
||||
return CONST.OAI_UE_PROCESS_SEG_FAULT
|
||||
global_status = CONST.OAI_UE_PROCESS_SEG_FAULT
|
||||
if foundAssertion:
|
||||
logging.debug('\u001B[1;30;43m UE showed an assertion! \u001B[0m')
|
||||
HTML.SethtmlUEFailureMsg(HTML.GethtmlUEFailureMsg() + 'UE showed an assertion!\n')
|
||||
if not nrUEFlag:
|
||||
if not mib_found or not frequency_found:
|
||||
return CONST.OAI_UE_PROCESS_ASSERTION
|
||||
global_status = CONST.OAI_UE_PROCESS_ASSERTION
|
||||
else:
|
||||
if not frequency_found:
|
||||
return CONST.OAI_UE_PROCESS_ASSERTION
|
||||
global_status = CONST.OAI_UE_PROCESS_ASSERTION
|
||||
if foundRealTimeIssue:
|
||||
logging.debug('\u001B[1;37;41m UE faced real time issues! \u001B[0m')
|
||||
HTML.SethtmlUEFailureMsg(HTML.GethtmlUEFailureMsg() + 'UE faced real time issues!\n')
|
||||
#return CONST.ENB_PROCESS_REALTIME_ISSUE
|
||||
if nrUEFlag:
|
||||
if not frequency_found:
|
||||
return CONST.OAI_UE_PROCESS_COULD_NOT_SYNC
|
||||
global_status = CONST.OAI_UE_PROCESS_COULD_NOT_SYNC
|
||||
else:
|
||||
if no_cell_sync_found and not mib_found:
|
||||
logging.debug('\u001B[1;37;41m UE could not synchronize ! \u001B[0m')
|
||||
HTML.SethtmlUEFailureMsg(HTML.GethtmlUEFailureMsg() + 'UE could not synchronize!\n')
|
||||
return CONST.OAI_UE_PROCESS_COULD_NOT_SYNC
|
||||
return 0
|
||||
global_status = CONST.OAI_UE_PROCESS_COULD_NOT_SYNC
|
||||
return global_status
|
||||
|
||||
|
||||
def TerminateFlexranCtrl(self):
|
||||
@@ -3110,11 +3111,15 @@ def GetParametersFromXML(action):
|
||||
RAN.SeteNB_serverId(test.findtext('eNB_serverId'))
|
||||
if (RAN.GeteNB_serverId() is None):
|
||||
RAN.SeteNB_serverId('0')
|
||||
CiTestObj.air_interface = test.findtext('air_interface')
|
||||
if (CiTestObj.air_interface is None):
|
||||
CiTestObj.air_interface = 'lte'
|
||||
else:
|
||||
CiTestObj.air_interface = CiTestObj.air_interface.lower()
|
||||
|
||||
#local variable air_interface
|
||||
air_interface = test.findtext('air_interface')
|
||||
if (air_interface is None) or (air_interface.lower() not in ['nr','lte','ocp']):
|
||||
CiTestObj.air_interface = 'lte-softmodem'
|
||||
elif (air_interface.lower() in ['nr','lte']):
|
||||
CiTestObj.air_interface = air_interface.lower() +'-softmodem'
|
||||
else :
|
||||
CiTestObj.air_interface = air_interface.lower() +'ocp-enb'
|
||||
RAN.Setair_interface(CiTestObj.air_interface)
|
||||
|
||||
if action == 'Terminate_eNB':
|
||||
@@ -3124,11 +3129,15 @@ def GetParametersFromXML(action):
|
||||
RAN.SeteNB_serverId(test.findtext('eNB_serverId'))
|
||||
if (RAN.GeteNB_serverId() is None):
|
||||
RAN.SeteNB_serverId('0')
|
||||
CiTestObj.air_interface = test.findtext('air_interface')
|
||||
if (CiTestObj.air_interface is None):
|
||||
CiTestObj.air_interface = 'lte'
|
||||
else:
|
||||
CiTestObj.air_interface = CiTestObj.air_interface.lower()
|
||||
|
||||
#local variable air_interface
|
||||
air_interface = test.findtext('air_interface')
|
||||
if (air_interface is None) or (air_interface.lower() not in ['nr','lte','ocp']):
|
||||
CiTestObj.air_interface = 'lte-softmodem'
|
||||
elif (air_interface.lower() in ['nr','lte']):
|
||||
CiTestObj.air_interface = air_interface.lower() +'-softmodem'
|
||||
else :
|
||||
CiTestObj.air_interface = air_interface.lower() +'ocp-enb'
|
||||
RAN.Setair_interface(CiTestObj.air_interface)
|
||||
|
||||
if action == 'Attach_UE':
|
||||
@@ -3158,11 +3167,16 @@ def GetParametersFromXML(action):
|
||||
CiTestObj.UE_instance = test.findtext('UE_instance')
|
||||
if (CiTestObj.UE_instance is None):
|
||||
CiTestObj.UE_instance = '0'
|
||||
CiTestObj.air_interface = test.findtext('air_interface')
|
||||
if (CiTestObj.air_interface is None):
|
||||
CiTestObj.air_interface = 'lte'
|
||||
else:
|
||||
CiTestObj.air_interface = CiTestObj.air_interface.lower()
|
||||
|
||||
#local variable air_interface
|
||||
air_interface = test.findtext('air_interface')
|
||||
if (air_interface is None) or (air_interface.lower() not in ['nr','lte','ocp']):
|
||||
CiTestObj.air_interface = 'lte-softmodem'
|
||||
elif (air_interface.lower() in ['nr','lte']):
|
||||
CiTestObj.air_interface = air_interface.lower() +'-softmodem'
|
||||
else :
|
||||
CiTestObj.air_interface = air_interface.lower() +'ocp-enb'
|
||||
RAN.Setair_interface(CiTestObj.air_interface)
|
||||
|
||||
if action == 'Terminate_OAI_UE':
|
||||
RAN.SeteNB_instance(test.findtext('UE_instance'))
|
||||
|
||||
Reference in New Issue
Block a user