From: "xu,huilong" <huilongx.xu@intel.com>
To: dts@dpdk.org
Cc: "xu,huilong" <huilongx.xu@intel.com>
Subject: [dts] [PATCH V1] fix dump failed case list
Date: Mon, 31 Jul 2017 15:44:01 +0800 [thread overview]
Message-ID: <1501487042-52363-1-git-send-email-huilongx.xu@intel.com> (raw)
update list:
fix dump info style for pci and mempool info
---
tests/TestSuite_unit_tests_dump.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/TestSuite_unit_tests_dump.py b/tests/TestSuite_unit_tests_dump.py
index 0ec8d78..03c9554 100644
--- a/tests/TestSuite_unit_tests_dump.py
+++ b/tests/TestSuite_unit_tests_dump.py
@@ -94,7 +94,7 @@ class TestUnitTestsDump(TestCase):
# Nic driver will create multiple rings.
# Only check the last one to make sure ring_dump function work.
- self.verify( 'MP_mbuf_pool_socket_0' in result[0][-1], "dump ring name failed")
+ self.verify( 'MP_mbuf_pool_socket_0' in result[0], "dump ring name failed")
def test_mempool_dump(self):
"""
@@ -107,7 +107,7 @@ class TestUnitTestsDump(TestCase):
m = re.compile(r"%s" % match_regex, re.S)
result = m.findall(out)
- self.verify(result[0][0] == 'mbuf_pool_socket_0', "dump mempool name failed")
+ self.verify(result[0][0] == 'MP_mbuf_pool_socket_0', "dump mempool name failed")
def test_physmem_dump(self):
"""
@@ -178,7 +178,7 @@ class TestUnitTestsDump(TestCase):
% (self.target, pci_address), "R.*T.*E.*>.*>", self.start_test_time)
out = self.dut.send_expect("dump_devargs", "RTE>>", self.run_cmd_time * 2)
self.dut.send_expect("quit", "# ")
- black_str = "PCI blacklist %s" % pci_address
+ black_str = " %s" % pci_address
self.verify(black_str in out, "Dump black list failed")
self.dut.send_expect("./%s/app/test -n 1 -c f -w %s"
@@ -186,7 +186,7 @@ class TestUnitTestsDump(TestCase):
out = self.dut.send_expect("dump_devargs", "RTE>>", self.run_cmd_time * 2)
self.dut.send_expect("quit", "# ")
- white_str = "PCI whitelist %s" % pci_address
+ white_str = "[pci]: %s" % pci_address
self.verify(white_str in out, "Dump white list failed")
def tear_down(self):
--
1.9.3
next reply other threads:[~2017-07-31 7:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-31 7:44 xu,huilong [this message]
2017-07-31 7:44 ` [dts] [PATCH V1] remove pci unit test case xu,huilong
2017-07-31 7:54 ` Liu, Yong
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=1501487042-52363-1-git-send-email-huilongx.xu@intel.com \
--to=huilongx.xu@intel.com \
--cc=dts@dpdk.org \
/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).