From cd71443d1b5b537d7b378ab55eb4969e29d943c9 Mon Sep 17 00:00:00 2001
From: Rohit Gupta <rohit.gupta@eurecom.fr>
Date: Tue, 10 Nov 2015 10:49:38 +0100
Subject: [PATCH] added keyword to handle numeric substitution

---
 cmake_targets/autotests/tools/search_repl.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmake_targets/autotests/tools/search_repl.py b/cmake_targets/autotests/tools/search_repl.py
index 9c49bcc4e5..43b023fccc 100644
--- a/cmake_targets/autotests/tools/search_repl.py
+++ b/cmake_targets/autotests/tools/search_repl.py
@@ -22,6 +22,9 @@ if keyword == 'mme_ip_address':
    #string =  (re.sub(r"mme_ip_address\s*=\s*\([^\$]+)\)\s*;\s*", r"<% tex \1 %>", t, re.M)
    replacement_text = keyword + ' =  ' + replacement_text + ' ; '
    string = re.sub(r"mme_ip_address\s*=\s*\(([^\$]+?)\)\s*;", replacement_text, string, re.M)
+elif keyword == 'N_RB_DL':
+   replacement_text = keyword + ' =  ' + replacement_text + ' ; '
+   string = re.sub(r"%s\s*=\s*([^\$]+?)\s*;" % keyword , replacement_text, string, re.M)   
 else : 
    replacement_text = keyword + ' = \" ' + replacement_text + '\" ; '
    string = re.sub(r"%s\s*=\s*\"([^\$]+?)\"\s*;" % keyword , replacement_text, string, re.M)
-- 
GitLab