test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH]tests:unit_tests_dump correct the pci address
@ 2016-07-28  1:46 pengyuan
  2016-07-28  2:35 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: pengyuan @ 2016-07-28  1:46 UTC (permalink / raw)
  To: dts; +Cc: pengyuan

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH]tests:unit_tests_dump correct the pci address
  2016-07-28  1:46 [dts] [PATCH]tests:unit_tests_dump correct the pci address pengyuan
@ 2016-07-28  2:35 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2016-07-28  2:35 UTC (permalink / raw)
  To: Peng, Yuan, dts; +Cc: Peng, Yuan

Thanks, applied.

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of pengyuan
> Sent: Thursday, July 28, 2016 9:46 AM
> To: dts@dpdk.org
> Cc: Peng, Yuan
> Subject: [dts] [PATCH]tests:unit_tests_dump correct the pci address
> 
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-28  2:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-28  1:46 [dts] [PATCH]tests:unit_tests_dump correct the pci address pengyuan
2016-07-28  2:35 ` Liu, Yong

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).