Code Review
/
moon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
a03ac96
)
Change the way the data strings are replaced to allow similar variables on the same...
37/1737/1
author
asteroide
<thomas.duval@orange.com>
Fri, 18 Sep 2015 10:19:10 +0000
(12:19 +0200)
committer
asteroide
<thomas.duval@orange.com>
Fri, 18 Sep 2015 10:19:10 +0000
(12:19 +0200)
Change-Id: I0ba5f0151ebc144015196b758c1bde587da63e7b
moonclient/moonclient/tests.py
patch
|
blob
|
history
diff --git
a/moonclient/moonclient/tests.py
b/moonclient/moonclient/tests.py
index
63f1ed1
..
1e1020b
100644
(file)
--- a/
moonclient/moonclient/tests.py
+++ b/
moonclient/moonclient/tests.py
@@
-33,7
+33,7
@@
class TestsLaunch(Lister):
def __replace_var_in_str(self, data_str):
for exp in re.findall("\$\w+", data_str):
if exp.replace("$", "") in self.result_vars:
- data_str =
data_str.replace(exp, self.result_vars[exp.replace("$", "")]
)
+ data_str =
re.sub(exp.replace("$", "\$") + "(?=$|\s)", self.result_vars[exp.replace("$", "")], data_str
)
return data_str
def __compare_results(self, expected, observed):