From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0B8B9A0503; Fri, 6 May 2022 10:25:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E790540395; Fri, 6 May 2022 10:25:42 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id D2A5B4014F for ; Fri, 6 May 2022 10:25:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651825541; x=1683361541; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Aszx1rjiQARrc+t2Fa2ENAzd1iOHtGJVj9ymRk3Yvr4=; b=aenay16eA8513t2wpoojDycp4kW36h0qh/9NdfkQwapC3UVxkDlKavkA IY8gOhzX+Q8/pVDQ4hnXOQW0OtVqWnouLD33MjH4IZdeKpa6mWPshBdgJ E0oVPDZrVF/Qe8PvAXGdhntOzV4j/eUDRuiFU0NoZ2oZST9WR1NFXF4Q7 kUpmG95lMTRZ7Rv/BtFc54tzYqwYUrHx/VcZwzBa9uLMoFJ4wciXvf7uU 5RRNMdAG/Uqu7t1m5QzXCVTpmEoDhUe1FyNKizVxhzZ0ZejAZkgeBy7/v TaQZDIxsqkPMi/lHg6qYGb7RItTAwHvs4unmUGgu4Zoy2fSUrsQm1Ku9Q Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10338"; a="268539680" X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="268539680" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 01:25:39 -0700 X-IronPort-AV: E=Sophos;i="5.91,203,1647327600"; d="scan'208";a="654608128" Received: from shwdenpg197.ccr.corp.intel.com ([10.253.109.70]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2022 01:25:38 -0700 From: Jun Dong To: dts@dpdk.org Cc: lijuan.tu@intel.com, qingx.sun@intel.com, junx.dong@intel.com Subject: [V1] framework/*: fix pylama errors Date: Fri, 6 May 2022 16:25:31 +0800 Message-Id: <20220506082531.2009-1-junx.dong@intel.com> X-Mailer: git-send-email 2.33.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 Pylama found the following errors: framework/virt_dut.py:87: [E] E1101 Instance of 'VirtDut' has no 'host_dut' member [pylint] framework/virt_dut.py:88: [E] E1101 Instance of 'VirtDut' has no 'host_dut' member [pylint] framework/virt_dut.py:119: [E] E1101 Instance of 'VirtDut' has no 'host_dut' member [pylint] framework/virt_dut.py:124: [E] E1101 Instance of 'VirtDut' has no 'host_dut' member [pylint] framework/virt_dut.py:356: [E] E1101 Instance of 'VirtDut' has no 'host_dut' member [pylint] Signed-off-by: Jun Dong --- framework/virt_base.py | 1 - framework/virt_dut.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/virt_base.py b/framework/virt_base.py index d4af8b98..93f77e5e 100644 --- a/framework/virt_base.py +++ b/framework/virt_base.py @@ -475,7 +475,6 @@ class VirtBase(object): vm_dut.nic_type = "any" vm_dut.tester = self.host_dut.tester - vm_dut.host_dut = self.host_dut vm_dut.host_session = self.host_session vm_dut.init_log() vm_dut.migration_vm = self.migration_vm diff --git a/framework/virt_dut.py b/framework/virt_dut.py index 369abacf..45b495a0 100644 --- a/framework/virt_dut.py +++ b/framework/virt_dut.py @@ -65,6 +65,7 @@ class VirtDut(DPDKdut): ) self.vm_name = vm_name self.hyper = hyper + self.host_dut = hyper.host_dut self.cpu_topo = cpu_topo self.migration_vm = False -- 2.33.1.windows.1