From: Phil Yang <phil.yang@arm.com>
To: dts@dpdk.org
Cc: nd@arm.com
Subject: [dts] [PATCH] tests/unit_tests_dump: fix dump info unmatched
Date: Fri, 1 Jun 2018 13:52:55 +0800 [thread overview]
Message-ID: <1527832375-20249-1-git-send-email-phil.yang@arm.com> (raw)
Align with DPDK fix 66cc45e, "mem: replace memseg with memseg lists".
DPDK changed dump info format, so adjust unit_tests_dump regex
expression.
Signed-off-by: Phil Yang <phil.yang@arm.com>
---
tests/TestSuite_unit_tests_dump.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_unit_tests_dump.py b/tests/TestSuite_unit_tests_dump.py
index f7985f2..b93f6c6 100644
--- a/tests/TestSuite_unit_tests_dump.py
+++ b/tests/TestSuite_unit_tests_dump.py
@@ -127,7 +127,7 @@ class TestUnitTestsDump(TestCase):
out = self.dut.send_expect("dump_physmem", "RTE>>", self.run_cmd_time * 2)
self.dut.send_expect("quit", "# ")
elements = ['Segment', 'IOVA', 'len', 'virt', 'socket_id', 'hugepage_sz', 'nchannel', 'nrank']
- match_regex = "Segment (\d)+:"
+ match_regex = "Segment (\d)+-(\d)+:"
for element in elements[1:-1]:
match_regex += " %s:(.*?)," % element
match_regex += " %s:(.*?)" % elements[-1]
@@ -152,7 +152,7 @@ class TestUnitTestsDump(TestCase):
out = self.dut.send_expect("dump_memzone", "testpmd>", self.run_cmd_time * 2)
self.dut.send_expect("quit", "# ")
- elements = ['Zone', 'name', 'IO', 'len', 'virt', 'socket_id', 'flags']
+ elements = ['Zone', 'name', 'len', 'virt', 'socket_id', 'flags']
match_regex = "Zone (\d):"
for element in elements[1:-1]:
match_regex += " %s:(.*?)," % element
--
2.7.4
reply other threads:[~2018-06-01 5:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1527832375-20249-1-git-send-email-phil.yang@arm.com \
--to=phil.yang@arm.com \
--cc=dts@dpdk.org \
--cc=nd@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).