[dts] [PATCH V1]shutdown_api: fix scapy cmd error

Tu, Lijuan lijuan.tu at intel.com
Mon Apr 20 07:24:11 CEST 2020


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Xiao Qimai
> Sent: Friday, April 17, 2020 4:49 PM
> To: dts at dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao at intel.com>
> Subject: [dts] [PATCH V1]shutdown_api: fix scapy cmd error
> 
> *. mac addr should be enclosed in quotation marks
> 
> Signed-off-by: Xiao Qimai <qimaix.xiao at intel.com>
> ---
>  tests/TestSuite_shutdown_api.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/TestSuite_shutdown_api.py
> b/tests/TestSuite_shutdown_api.py index 8661863..b5c0d5a 100644
> --- a/tests/TestSuite_shutdown_api.py
> +++ b/tests/TestSuite_shutdown_api.py
> @@ -709,7 +709,7 @@ class TestShutdownApi(TestCase):
>          tgenInput = []
>          for port in self.ports:
>              dmac=self.dut.get_mac_address(port)
> -
> self.tester.scapy_append('wrpcap("test%d.pcap",[Ether(src="02:00:00:00:00:
> 0%d",dst=%s)/IP()/UDP()/()])'% (port, port, dmac))
> +
> + self.tester.scapy_append('wrpcap("test%d.pcap",[Ether(src="02:00:00:00
> + :00:0%d",dst="%s")/IP()/UDP()/()])'% (port, port, dmac))
>              tgenInput.append((self.tester.get_local_port(port),
> self.tester.get_local_port(port), "test%d.pcap" % port))
>          for _ in range(stress_iterations):
>              self.dut.send_expect("port stop all", "testpmd> ", 100)
> --
> 1.8.3.1



More information about the dts mailing list