[dts] [PATCH V1] tests/unit_tests_ringpmd:Fix variable name and string concatenation error

Zeng, XiaoxiaoX xiaoxiaox.zeng at intel.com
Wed Jan 22 10:31:41 CET 2020


Tested_by: Zeng,XiaoxiaoX<xiaoxiaox.zeng at intel.com>


> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Zhou,JunX W
> Sent: Wednesday, January 22, 2020 5:06 PM
> To: dts at dpdk.org
> Cc: Zhou, JunX W <junx.w.zhou at intel.com>
> Subject: [dts] [PATCH V1] tests/unit_tests_ringpmd:Fix variable name and
> string concatenation error
> 
> dev_strt2 is not define,dev_str2 is right; There should be only two '%' in
> 'self.dut.send_expect("./%s/app/test %s %s"'
> 
> Signed-off-by: Zhou,JunX W <junx.w.zhou at intel.com>
> ---
>  tests/TestSuite_unit_tests_ringpmd.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/TestSuite_unit_tests_ringpmd.py
> b/tests/TestSuite_unit_tests_ringpmd.py
> index 49895a1..19abb6e 100644
> --- a/tests/TestSuite_unit_tests_ringpmd.py
> +++ b/tests/TestSuite_unit_tests_ringpmd.py
> @@ -80,8 +80,8 @@ class TestUnitTestsRingPmd(TestCase):
>          self.dut.send_expect("quit", "# ")
>          self.verify("Test OK" in out, "Default no eth_ring devices Test failed")
> 
> -        eal_params =
> self.dut.create_eal_parameters(cores=self.cores,vdevs=[dev_str1,dev_strt2
> ])
> -        self.dut.send_expect("./%s/app/test %s %s" % (self.target,
> eal_params), "R.*T.*E.*>.*>", 10)
> +        eal_params =
> self.dut.create_eal_parameters(cores=self.cores,vdevs=[dev_str1,dev_str2])
> +        self.dut.send_expect("./%s/app/test %s" % (self.target,
> + eal_params), "R.*T.*E.*>.*>", 10)
>          out = self.dut.send_expect("ring_pmd_autotest", "RTE>>", 120)
>          self.dut.send_expect("quit", "# ")
>          self.verify("Test OK" in out, "Two eth_ring devices test failed")
> --
> 2.17.2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestUnitTestsRingPmd.log
Type: application/octet-stream
Size: 7556 bytes
Desc: TestUnitTestsRingPmd.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200122/d54e6fef/attachment.obj>


More information about the dts mailing list