diff --git a/ci-scripts/cls_oai_html.py b/ci-scripts/cls_oai_html.py
index 6e29063192..444fc68b5c 100644
--- a/ci-scripts/cls_oai_html.py
+++ b/ci-scripts/cls_oai_html.py
@@ -218,7 +218,7 @@ class HTMLManagement():
cmd = "sed -i -e 's/__STATE_" + self.htmlTabNames[0] + "__//' test_results.html"
subprocess.run(cmd, shell=True)
else:
- cmd = "sed -i -e 's/__STATE_" + self.htmlTabNames[0] + "__/<\/span>/' test_results.html"
+ cmd = "sed -i -e 's/__STATE_" + self.htmlTabNames[0] + r"__/<\/span>/' test_results.html"
subprocess.run(cmd, shell=True)
self.htmlFooterCreated = False
diff --git a/ci-scripts/cls_static_code_analysis.py b/ci-scripts/cls_static_code_analysis.py
index 5ed52e4027..cc9abedf23 100644
--- a/ci-scripts/cls_static_code_analysis.py
+++ b/ci-scripts/cls_static_code_analysis.py
@@ -89,7 +89,7 @@ class StaticCodeAnalysis():
logging.debug('Building on server: ' + node)
cmd = cls_cmd.getConnection(node)
# on RedHat/CentOS .git extension is mandatory
- result = re.search('([a-zA-Z0-9\:\-\.\/])+\.git', self.ranRepository)
+ result = re.search(r'([a-zA-Z0-9\:\-\.\/])+\.git', self.ranRepository)
if result is not None:
full_ran_repo_name = self.ranRepository.replace('git/', 'git')
else:
@@ -121,7 +121,7 @@ class StaticCodeAnalysis():
xmlStart = False
with open(filename, 'r') as logfile:
for line in logfile:
- ret = re.search('cppcheck version="(?P[0-9\.]+)"', str(line))
+ ret = re.search(r'cppcheck version="(?P[0-9\.]+)"', str(line))
if ret is not None:
CCR.versions[vId] = ret.group('version')
if re.search('RUN cat cmake_targets/log/cppcheck.xml', str(line)) is not None:
diff --git a/ci-scripts/ran.py b/ci-scripts/ran.py
index 04384ad4f4..9a69f2d747 100644
--- a/ci-scripts/ran.py
+++ b/ci-scripts/ran.py
@@ -420,7 +420,7 @@ class RANManagement():
if result is not None:
mbmsRequestMsg += 1
#FR1 NSA test : add new markers to make sure gNB is used
- result = re.search('\[gNB [0-9]+\]\[RAPROC\] PUSCH with TC_RNTI 0x[0-9a-fA-F]+ received correctly, adding UE MAC Context RNTI 0x[0-9a-fA-F]+', str(line))
+ result = re.search(r'\[gNB [0-9]+\]\[RAPROC\] PUSCH with TC_RNTI 0x[0-9a-fA-F]+ received correctly, adding UE MAC Context RNTI 0x[0-9a-fA-F]+', str(line))
if result is not None:
NSA_RAPROC_PUSCH_check = 1
@@ -449,11 +449,11 @@ class RANManagement():
#count "problem receiving samples" msg
- result = re.search('\[PHY\]\s+problem receiving samples', str(line))
+ result = re.search(r'\[PHY\]\s+problem receiving samples', str(line))
if result is not None:
pb_receiving_samples_cnt += 1
#count "Removing UE" msg
- result = re.search('\[MAC\]\s+Removing UE', str(line))
+ result = re.search(r'\[MAC\]\s+Removing UE', str(line))
if result is not None:
removing_ue += 1
#count "X2AP-PDU"