Commit 92b19e2d authored by Mohammed Ismail's avatar Mohammed Ismail

CI: fix on true negative result

Signed-off-by: default avatarMohammed Ismail <mohammed.ismail@openairinterface.org>
parent d2360457
...@@ -58,7 +58,7 @@ class PhySim: ...@@ -58,7 +58,7 @@ class PhySim:
self.testResult = {} self.testResult = {}
self.testCount = [0,0,0] self.testCount = [0,0,0]
self.testSummary = {} self.testSummary = {}
self.exitStatus=0 self.testStatus = False
#-----------------$ #-----------------$
#PUBLIC Methods$ #PUBLIC Methods$
...@@ -236,6 +236,8 @@ class PhySim: ...@@ -236,6 +236,8 @@ class PhySim:
mySSH.command('oc logout', '\$', 6) mySSH.command('oc logout', '\$', 6)
mySSH.close() mySSH.close()
self.AnalyzeLogFile_phySim(HTML) self.AnalyzeLogFile_phySim(HTML)
if self.testStatus == False:
sys.exit(-1)
def AnalyzeLogFile_phySim(self, HTML): def AnalyzeLogFile_phySim(self, HTML):
lIpAddr = self.eNBIPAddress lIpAddr = self.eNBIPAddress
...@@ -281,6 +283,8 @@ class PhySim: ...@@ -281,6 +283,8 @@ class PhySim:
self.testSummary['Nbtests'] = self.testCount[0] self.testSummary['Nbtests'] = self.testCount[0]
self.testSummary['Nbpass'] = self.testCount[1] self.testSummary['Nbpass'] = self.testCount[1]
self.testSummary['Nbfail'] = self.testCount[2] self.testSummary['Nbfail'] = self.testCount[2]
if self.testSummary['Nbfail'] == 0:
self.testStatus = True
HTML.CreateHtmlTestRow('N/A', 'OK', CONST.ALL_PROCESSES_OK) HTML.CreateHtmlTestRow('N/A', 'OK', CONST.ALL_PROCESSES_OK)
HTML.CreateHtmlTestRowPhySimTestResult(self.testSummary,self.testResult) HTML.CreateHtmlTestRowPhySimTestResult(self.testSummary,self.testResult)
logging.info('\u001B[1m Physical Simulator Pass\u001B[0m') logging.info('\u001B[1m Physical Simulator Pass\u001B[0m')
......
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