Do not require "Bye." to be in last line

This commit is contained in:
Robert Schmidt
2022-10-29 12:48:55 +02:00
parent e17575f52a
commit 3ae26431eb
+1 -4
View File
@@ -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()