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

Xie Wei weix.xie at intel.com
Sun Jan 19 09:52:55 CET 2020


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