[dts] fix set_promiscuousmode failed case

xu,huilong huilongx.xu at intel.com
Mon Oct 26 08:51:00 CET 2015


test send package dst mac is dut port rx port mac
Signed-off-by: xu,huilong <huilongx.xu 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 37c2481..c371c0e 100644
--- a/tests/TestSuite_shutdown_api.py
+++ b/tests/TestSuite_shutdown_api.py
@@ -101,7 +101,7 @@ class TestShutdownApi(TestCase):
             itf = self.tester.get_interface(self.tester.get_local_port(rxPort))
         else:
             itf = testerports
-        mac = self.dut.get_mac_address(txPort)
+        mac = self.dut.get_mac_address(rxPort)
 
         self.tester.scapy_foreground()
         if self.nic in ["fortville_eagle", "fortville_spirit",
-- 
1.9.3



More information about the dts mailing list