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

Xiao Qimai qimaix.xiao at intel.com
Fri Apr 17 10:48:47 CEST 2020


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