summaryrefslogtreecommitdiffstats
path: root/etc/TestCmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'etc/TestCmd.py')
-rw-r--r--etc/TestCmd.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/TestCmd.py b/etc/TestCmd.py
index 912be48..2d1c932 100644
--- a/etc/TestCmd.py
+++ b/etc/TestCmd.py
@@ -186,6 +186,16 @@ def match_re(lines = None, res = None):
return
return 1
+def match_re_dotall(lines = None, res = None):
+ """
+ """
+ if not type(lines) is type(""):
+ lines = join(lines, "\n")
+ if not type(res) is type(""):
+ res = join(res, "\n")
+ if re.compile("^" + res + "$", re.DOTALL).match(lines):
+ return 1
+
class TestCmd:
"""Class TestCmd
"""