fixing self.cnt to SSH.cnt mistake
This commit is contained in:
@@ -4816,10 +4816,10 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re
|
|||||||
|
|
||||||
SSH.CreateHtmlTabHeader()
|
SSH.CreateHtmlTabHeader()
|
||||||
|
|
||||||
self.cnt = 0
|
SSH.cnt = 0
|
||||||
SSH.prematureExit = True
|
SSH.prematureExit = True
|
||||||
SSH.startTime = int(round(time.time() * 1000))
|
SSH.startTime = int(round(time.time() * 1000))
|
||||||
while self.cnt < SSH.repeatCounts[0] and SSH.prematureExit:
|
while SSH.cnt < SSH.repeatCounts[0] and SSH.prematureExit:
|
||||||
SSH.prematureExit = False
|
SSH.prematureExit = False
|
||||||
for test_case_id in todo_tests:
|
for test_case_id in todo_tests:
|
||||||
if SSH.prematureExit:
|
if SSH.prematureExit:
|
||||||
@@ -4907,13 +4907,13 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re
|
|||||||
SSH.Perform_X2_Handover()
|
SSH.Perform_X2_Handover()
|
||||||
else:
|
else:
|
||||||
sys.exit('Invalid action')
|
sys.exit('Invalid action')
|
||||||
self.cnt += 1
|
SSH.cnt += 1
|
||||||
if self.cnt == SSH.repeatCounts[0] and SSH.prematureExit:
|
if SSH.cnt == SSH.repeatCounts[0] and SSH.prematureExit:
|
||||||
logging.debug('Testsuite failed ' + str(self.cnt) + ' time(s)')
|
logging.debug('Testsuite failed ' + str(SSH.cnt) + ' time(s)')
|
||||||
SSH.CreateHtmlTabFooter(False)
|
SSH.CreateHtmlTabFooter(False)
|
||||||
sys.exit('Failed Scenario')
|
sys.exit('Failed Scenario')
|
||||||
else:
|
else:
|
||||||
logging.info('Testsuite passed after ' + str(self.cnt) + ' time(s)')
|
logging.info('Testsuite passed after ' + str(SSH.cnt) + ' time(s)')
|
||||||
SSH.CreateHtmlTabFooter(True)
|
SSH.CreateHtmlTabFooter(True)
|
||||||
else:
|
else:
|
||||||
Usage()
|
Usage()
|
||||||
|
|||||||
Reference in New Issue
Block a user