From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9CB46A0530; Wed, 12 Feb 2020 03:03:39 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6103B2B87; Wed, 12 Feb 2020 03:03:39 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 512A92A5D for ; Wed, 12 Feb 2020 03:03:37 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Feb 2020 18:03:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,428,1574150400"; d="scan'208";a="313257663" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 11 Feb 2020 18:03:35 -0800 From: malihong To: dts@dpdk.org Cc: lihong Date: Wed, 12 Feb 2020 10:09:05 +0800 Message-Id: <1581473345-82887-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/vhost_multi_queue_qemu: fix issue abuot get interface of tester 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" From: lihong Signed-off-by: lihong --- tests/TestSuite_vhost_multi_queue_qemu.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_vhost_multi_queue_qemu.py b/tests/TestSuite_vhost_multi_queue_qemu.py index 1232cf3..5a1a660 100644 --- a/tests/TestSuite_vhost_multi_queue_qemu.py +++ b/tests/TestSuite_vhost_multi_queue_qemu.py @@ -49,8 +49,6 @@ class TestVhostUserOneCopyOneVm(TestCase): # Get and verify the ports self.dut_ports = self.dut.get_ports() self.verify(len(self.dut_ports) >= 1, "Insufficient ports for testing") - local_port = self.tester.get_local_port(self.dut_ports[0]) - self.tx_interface = self.tester.get_interface(local_port) # Get the port's socket self.pf = self.dut_ports[0] netdev = self.dut.ports_info[self.pf]['port'] @@ -177,6 +175,8 @@ class TestVhostUserOneCopyOneVm(TestCase): While verify_type is "vhost queue < virtio queue", the vhost should forward all set of data While verify_type is "vhost queue > virtio queue", the vhost should forward at least one set of data """ + local_port = self.tester.get_local_port(self.dut_ports[0]) + self.tx_interface = self.tester.get_interface(local_port) for frame_size in self.frame_sizes: info = "Running test %s, and %d frame size." % (self.running_case, frame_size) self.logger.info(info) -- 1.9.3