[dts] [patch] physmem_dump : remove match "\n" send_expect will remove the end "\r\n", so it match failed if only one string
Liu, Yong
yong.liu at intel.com
Wed Nov 4 05:49:42 CET 2015
Applied. Please separate subject and commit log. Mail subject should be
the description of this patch. The detail logs should be in the mail
content.
On 11/04/2015 12:26 PM, Lijuan Tu wrote:
> 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 = []
More information about the dts
mailing list