[dts] [PATCH V1] tests/vf_l3fwd:string join func not support py3

Tu, Lijuan lijuan.tu at intel.com
Mon Jan 20 06:45:32 CET 2020


Applied

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Xie Wei
> Sent: Sunday, January 19, 2020 4:53 PM
> To: dts at dpdk.org
> Cc: Xie, WeiX <weix.xie at intel.com>
> Subject: [dts] [PATCH V1] tests/vf_l3fwd:string join func not support py3
> 
> Signed-off-by: Xie Wei <weix.xie at intel.com>
> ---
>  tests/TestSuite_vf_l3fwd.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/TestSuite_vf_l3fwd.py b/tests/TestSuite_vf_l3fwd.py index
> 78b24c9..760b920 100644
> --- a/tests/TestSuite_vf_l3fwd.py
> +++ b/tests/TestSuite_vf_l3fwd.py
> @@ -192,7 +192,7 @@ class TestVfL3fwd(TestCase):
>              for layer in self.flows()[_port * 2:(_port + 1) * 2]:
>                  flow = ['Ether(dst="%s", src="%s")/%s/("X"*%d)' % (dmac[index],
> smac[index], layer, payload_size)]
>                  pcap = os.sep.join([self.output_path,
> "dst{0}_{1}.pcap".format(index, cnt)])
> -                self.tester.scapy_append('wrpcap("%s", [%s])' % (pcap,
> string.join(flow, ',')))
> +                self.tester.scapy_append('wrpcap("%s", [%s])' % (pcap,
> + ','.join(flow)))
>                  self.tester.scapy_execute()
>                  if index not in pcaps:
>                      pcaps[index] = []
> --
> 2.17.2



More information about the dts mailing list