From patchwork Mon Dec 6 12:21:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Juraj_Linke=C5=A1?= X-Patchwork-Id: 104947 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3D2F0A034F; Mon, 6 Dec 2021 13:21:12 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3668341160; Mon, 6 Dec 2021 13:21:12 +0100 (CET) Received: from lb.pantheon.sk (lb.pantheon.sk [46.229.239.20]) by mails.dpdk.org (Postfix) with ESMTP id 34CAB410E5 for ; Mon, 6 Dec 2021 13:21:11 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lb.pantheon.sk (Postfix) with ESMTP id C4D74134296; Mon, 6 Dec 2021 13:21:10 +0100 (CET) X-Virus-Scanned: amavisd-new at siecit.sk Received: from lb.pantheon.sk ([127.0.0.1]) by localhost (lb.pantheon.sk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vpZ7Mw-ARYwk; Mon, 6 Dec 2021 13:21:09 +0100 (CET) Received: from service-node1.lab.pantheon.local (unknown [46.229.239.141]) by lb.pantheon.sk (Postfix) with ESMTP id AC79E130F7E; Mon, 6 Dec 2021 13:21:09 +0100 (CET) From: =?utf-8?q?Juraj_Linke=C5=A1?= To: lijuan.tu@intel.com, ohilyard@iol.unh.edu Cc: dts@dpdk.org, =?utf-8?q?Juraj_Linke=C5=A1?= Subject: [PATCH v1] framework/project_dpdk: fix pylama errors Date: Mon, 6 Dec 2021 13:21:09 +0100 Message-Id: <1638793269-2769-1-git-send-email-juraj.linkes@pantheon.tech> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 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/project_dpdk.py:292: [E] E1101 Instance of 'DPDKdut' has no 'host_dut' member [pylint] framework/project_dpdk.py:293: [E] E1101 Instance of 'DPDKdut' has no 'host_dut' member [pylint] framework/project_dpdk.py:294: [E] E1101 Instance of 'DPDKdut' has no 'host_dut' member [pylint] framework/project_dpdk.py:421: [E] E1101 Instance of 'DPDKdut' has no 'host_dut' member [pylint] Signed-off-by: Juraj Linkeš --- Lijuan, please add additional people to review if needed. --- framework/project_dpdk.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index 9927bcc1..6001d8a4 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -286,15 +286,6 @@ class DPDKdut(Dut): shared_lib_path = load_global_setting(HOST_SHARED_LIB_PATH) if use_shared_lib == 'true' and 'Virt' not in str(self): self.set_build_options({'RTE_BUILD_SHARED_LIB': 'y'}) - kernel_driver = '' - nic_name = '' - if 'Virt' in str(self): - if self.host_dut.nic: - kernel_driver = self.host_dut.nic.default_driver - nic_name = self.host_dut.nic.name - elif self.nic: - kernel_driver = self.nic.default_driver - nic_name = self.nic.name build_type = load_global_setting(HOST_BUILD_TYPE_SETTING) build_install_dpdk = getattr(self, 'build_install_dpdk_%s_%s' % (self.get_os_type(), build_type)) @@ -418,7 +409,7 @@ class DPDKdut(Dut): "--snapshot when run dts") # if ':' in session, this is vm dut, use the dut session if ':' in self.session.name: - session_info = self.host_dut.alt_session + session_info = self.crb.alt_session else: session_info = self.alt_session out = session_info.send_expect('ls -F %s' % self.package, '# ')