From 3ae26431eb6d0a7a527cffd5417a4c30a7b4f2a7 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Tue, 25 Oct 2022 17:03:02 +0200 Subject: [PATCH] Do not require "Bye." to be in last line --- ci-scripts/ran.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ci-scripts/ran.py b/ci-scripts/ran.py index da2ac9a401..4358a99af4 100644 --- a/ci-scripts/ran.py +++ b/ci-scripts/ran.py @@ -1048,10 +1048,7 @@ class RANManagement(): gnb_markers[k].append(line_cnt) # check whether e/gNB log finishes with "Bye." message - # Note that it is "=" not "|=" so not only is the regex - # asking for EOF (\Z) but we also only retain the last - # line's result - showedByeMsg = re.search(r'^Bye.\n\Z', str(line), re.MULTILINE) is not None + showedByeMsg |= re.search(r'^Bye.\n', str(line), re.MULTILINE) is not None enb_log_file.close()