test suite reviews and discussions
 help / color / mirror / Atom feed
From: pengyuan <yuan.peng@intel.com>
To: dts@dpdk.org
Cc: pengyuan <yuan.peng@intel.com>
Subject: [dts] [PATCH]tests:unit_tests_dump correct the pci address
Date: Thu, 28 Jul 2016 09:46:11 +0800	[thread overview]
Message-ID: <1469670371-25108-1-git-send-email-yuan.peng@intel.com> (raw)

Signed-off-by: pengyuan <yuan.peng@intel.com>

diff --git a/tests/TestSuite_unit_tests_dump.py b/tests/TestSuite_unit_tests_dump.py
index 381c2fe..afdc256 100644
--- a/tests/TestSuite_unit_tests_dump.py
+++ b/tests/TestSuite_unit_tests_dump.py
@@ -185,19 +185,19 @@ class TestUnitTestsDump(TestCase):
         Run devargs dump test case.
         """
         test_port = self.dut_ports[0]
-        self.dut.send_expect("./%s/app/test -n 1 -c ffff -b 0000:%s"
+        self.dut.send_expect("./%s/app/test -n 1 -c ffff -b %s"
                              % (self.target, self.dut.ports_info[test_port]['pci']), "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 0000:%s" % self.dut.ports_info[test_port]['pci']
+        black_str = "PCI blacklist %s" % self.dut.ports_info[test_port]['pci']
         self.verify(black_str in out, "Dump black list failed")
 
-        self.dut.send_expect("./%s/app/test -n 1 -c ffff -w 0000:%s"
+        self.dut.send_expect("./%s/app/test -n 1 -c ffff -w %s"
                              % (self.target, self.dut.ports_info[test_port]['pci']), "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", "# ")
 
-        white_str = "PCI whitelist 0000:%s" % self.dut.ports_info[test_port]['pci']
+        white_str = "PCI whitelist %s" % self.dut.ports_info[test_port]['pci']
         self.verify(white_str in out, "Dump white list failed")
 
     def tear_down(self):
-- 
2.5.5

             reply	other threads:[~2016-07-28  1:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-28  1:46 pengyuan [this message]
2016-07-28  2:35 ` 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=1469670371-25108-1-git-send-email-yuan.peng@intel.com \
    --to=yuan.peng@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).