Commit 541e74ba authored by mjoang's avatar mjoang
Browse files

2021/07/13 mjoang: 1st version

parent c9dd3a5a
......@@ -3012,6 +3012,7 @@ class OaiCiTest():
if path.exists(self.UELogFile):
logging.debug('\u001B[1m Analyzing UE logfile \u001B[0m')
logStatus = self.AnalyzeLogFile_UE(self.UELogFile,HTML,RAN)
logStatus = -1
result = re.search('--no-L2-connect', str(self.Initialize_OAI_UE_args))
if result is not None:
ueAction = 'Sniffing'
......@@ -3021,6 +3022,7 @@ class OaiCiTest():
logging.info('\u001B[1m' + ueAction + ' Failed \u001B[0m')
#HTML.htmlUEFailureMsg='<b>' + ueAction + ' Failed</b>\n' + HTML.htmlUEFailureMsg
#HTML.CreateHtmlTestRow('N/A', 'KO', logStatus, 'UE')
sys.exit('Failed Scenario')
if self.air_interface == 'lte-uesoftmodem':
# In case of sniffing on commercial eNBs we have random results
# Not an error then
......
......@@ -638,17 +638,20 @@ class RANManagement():
def AnalyzeeNB(self, HTML, EPC):
fileToAnalyze="logfiles/openairxlabs-oai-lop--ci-srn8-RES119797/gnb.log"
nodeB_prefix = 'g'
if path.exists(fileToAnalyze):
logging.info('\u001B[1m Analyzing ' + 'NB logfile \u001B[0m ' + fileToAnalyze)
logging.info('\u001B[1m Analyzing ' + nodeB_prefix + 'NB logfile \u001B[0m ' + fileToAnalyze)
logStatus = self.AnalyzeLogFile_eNB(fileToAnalyze, HTML)
logStatus = -1
if (logStatus < 0):
logging.info('\u001B[1m' + ' NB Failed \u001B[0m')
logging.info('\u001B[1m' + nodeB_prefix + 'NB Failed \u001B[0m')
#HTML.CreateHtmlTestRow('N/A', 'KO', logStatus)
self.preamtureExit = True
self.eNBmbmsEnables[int(self.eNB_instance)] = False
return
sys.exit('Failed Scenario')
#return
else:
logging.info('\u001B[1m' + ' NB Completed \u001B[0m')
logging.info('\u001B[1m' + nodeB_prefix + 'NB Completed \u001B[0m')
#HTML.CreateHtmlTestRow(self.runtime_stats, 'OK', CONST.ALL_PROCESSES_OK)
self.eNBmbmsEnables[int(self.eNB_instance)] = False
self.eNBstatuses[int(self.eNB_instance)] = -1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment