Commit 0a42ddce authored by Mohammed Ismail's avatar Mohammed Ismail

CI: logs delay fix

Signed-off-by: default avatarMohammed Ismail <mohammed.ismail@openairinterface.org>
parent 2b82e889
......@@ -200,18 +200,17 @@ class PhySim:
# Waiting to complete the running test
count = 0
isFinished = False
testCompleteCount = 0
tmpPodNames = podNames
while(count < 25 and isFinished == False):
time.sleep(58)
for podName in podNames:
for podName in tmpPodNames:
mySSH.command(f'oc logs --tail=1 {podName} 2>&1', '\$', 6)
if mySSH.getBefore().count('Finished') != 0:
testCompleteCount += 1
time.sleep(1)
if testCompleteCount == 12:
tmpPodNames.remove(podName)
time.sleep(2)
if not tmpPodNames:
isFinished = True
count += 1
testCompleteCount = 0
if isFinished:
logging.debug('\u001B[1m PhySim test is Complete\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