[dts] [patch] physmem_dump : remove match "\n" send_expect will remove the end "\r\n", so it match failed if only one string
Lijuan Tu
lijuanx.a.tu at intel.com
Wed Nov 4 05:26:42 CET 2015
Signed-off-by: Lijuan Tu <lijuanx.a.tu at intel.com>
---
tests/TestSuite_unit_tests_dump.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/TestSuite_unit_tests_dump.py b/tests/TestSuite_unit_tests_dump.py
index 2052cb4..8b094b5 100644
--- a/tests/TestSuite_unit_tests_dump.py
+++ b/tests/TestSuite_unit_tests_dump.py
@@ -129,7 +129,7 @@ class TestUnitTestsDump(TestCase):
match_regex = "Segment (\d)+:"
for element in elements[1:-1]:
match_regex += " %s:(.*?)," % element
- match_regex += " %s:(.*?)\n" % elements[-1]
+ match_regex += " %s:(.*?)" % elements[-1]
m = re.compile(r"%s" % match_regex, re.DOTALL)
results = m.findall(out)
phy_info = []
--
1.7.3.1
More information about the dts
mailing list