From 4bfcef6e168e8fed305ebf4cff186d83763eed69 Mon Sep 17 00:00:00 2001
From: Raphael Defosseux <raphael.defosseux@eurecom.fr>
Date: Thu, 27 Feb 2020 16:46:41 +0100
Subject: [PATCH] CI: fixing the infinite loop w/ UE crashes before "got sync"
 message

Signed-off-by: Raphael Defosseux <raphael.defosseux@eurecom.fr>
---
 ci-scripts/main.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ci-scripts/main.py b/ci-scripts/main.py
index e1223392693..2a4da2818f3 100644
--- a/ci-scripts/main.py
+++ b/ci-scripts/main.py
@@ -1104,6 +1104,9 @@ class SSHConnection():
 				if result is not None:
 					self.command('echo ' + self.UEPassword + ' | sudo -S killall --signal=SIGINT -r *-uesoftmodem', '\$', 4)
 					time.sleep(3)
+				outterLoopCounter = outterLoopCounter - 1
+				if (outterLoopCounter == 0):
+					doOutterLoop = False
 				continue
 			if self.air_interface == 'nr':
 				fullSyncStatus = True
-- 
GitLab