Commit 708f34ee authored by hardy's avatar hardy

fixing auto-terminate function to kill all RAN nodes

parent 40141270
...@@ -2902,13 +2902,17 @@ class OaiCiTest(): ...@@ -2902,13 +2902,17 @@ class OaiCiTest():
self.ShowTestID() self.ShowTestID()
self.TerminateOAIUE(HTML,RAN,COTS_UE) self.TerminateOAIUE(HTML,RAN,COTS_UE)
if (RAN.Initialize_eNB_args != ''): if (RAN.Initialize_eNB_args != ''):
self.testCase_id = 'AUTO-KILL-eNB' self.testCase_id = 'AUTO-KILL-RAN'
HTML.testCase_id=self.testCase_id HTML.testCase_id=self.testCase_id
self.desc = 'Automatic Termination of eNB' self.desc = 'Automatic Termination of all RAN nodes'
HTML.desc='Automatic Termination of eNB' HTML.desc='Automatic Termination of RAN nodes'
self.ShowTestID() self.ShowTestID()
RAN.eNB_instance=0 #terminate all RAN nodes eNB/gNB/OCP
RAN.TerminateeNB() for instance in range(0, len(RAN.air_interface)):
if RAN.air_interface[instance]!=''
logging.debug('Auto Termination of Instance ' + str(instance) + ' : ' + RAN.air_interface[instance])
RAN.eNB_instance=instance
RAN.TerminateeNB()
if RAN.flexranCtrlInstalled and RAN.flexranCtrlStarted: if RAN.flexranCtrlInstalled and RAN.flexranCtrlStarted:
self.testCase_id = 'AUTO-KILL-flexran-ctl' self.testCase_id = 'AUTO-KILL-flexran-ctl'
HTML.testCase_id=self.testCase_id HTML.testCase_id=self.testCase_id
......
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