From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 815171F5 for ; Tue, 29 Aug 2017 03:57:21 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP; 28 Aug 2017 18:57:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,443,1498546800"; d="scan'208";a="1189159290" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 28 Aug 2017 18:57:19 -0700 From: Fangfang Wei To: dts@dpdk.org Cc: Fangfang Wei Date: Tue, 29 Aug 2017 09:58:34 +0800 Message-Id: <1503971914-98974-1-git-send-email-fangfangx.wei@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/vf_port_start_stop: fix mac address error X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2017 01:57:21 -0000 vm port mac address will be changed after bind to igb_uio and run testpmd. So getting port mac address should uses the function get_port_mac() which is in PmdOutput class. Signed-off-by: Fangfang Wei --- tests/TestSuite_vf_port_start_stop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_vf_port_start_stop.py b/tests/TestSuite_vf_port_start_stop.py index ddcfbc7..9e2e47c 100644 --- a/tests/TestSuite_vf_port_start_stop.py +++ b/tests/TestSuite_vf_port_start_stop.py @@ -219,7 +219,7 @@ class TestVfPortStartStop(TestCase): time.sleep(2) - dst_mac = self.vm_dut_0.get_mac_address(self.vm0_dut_ports[0]) + dst_mac = self.vm0_testpmd.get_port_mac(self.vm0_dut_ports[0]) self.send_and_verify(dst_mac, self.vm0_testpmd) def tear_down(self): -- 2.7.4