aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuan HE <ruan.he@orange.com>2015-09-22 09:04:18 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-09-22 09:04:18 +0000
commit75d34c69f28d691288d6b3afb16d6d5ca5824fd7 (patch)
treef1ca02ad2cf5f2fbf06a8a5c1580e3d1e1c3e1e2
parenta25d70ffbe21f4bdf5ad5d086b829eeef4820708 (diff)
parent9caa954d75981b8641b76978316cbe591e845b55 (diff)
Merge "Change the regular expression used to catch ''"
-rw-r--r--moonclient/moonclient/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/moonclient/moonclient/tests.py b/moonclient/moonclient/tests.py
index 1e1020bf..5badf4bc 100644
--- 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 = re.sub(exp.replace("$", "\$") + "(?=$|\s)", self.result_vars[exp.replace("$", "")], data_str)
+ data_str = re.sub(exp.replace("$", "\$") + "(?!\w)", self.result_vars[exp.replace("$", "")], data_str)
return data_str
def __compare_results(self, expected, observed):