* [dts] [PATCH] tests/unit_tests_dump: fix dump info unmatched
@ 2018-06-01 5:52 Phil Yang
0 siblings, 0 replies; only message in thread
From: Phil Yang @ 2018-06-01 5:52 UTC (permalink / raw)
To: dts; +Cc: nd
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-06-01 5:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-01 5:52 [dts] [PATCH] tests/unit_tests_dump: fix dump info unmatched Phil Yang
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).