From patchwork Wed Nov 24 14:12:56 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: 104674 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 AADC9A0C52; Wed, 24 Nov 2021 15:13:00 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6A9FB426E2; Wed, 24 Nov 2021 15:13:00 +0100 (CET) Received: from lb.pantheon.sk (lb.pantheon.sk [46.229.239.20]) by mails.dpdk.org (Postfix) with ESMTP id 3199541233 for ; Wed, 24 Nov 2021 15:12:59 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lb.pantheon.sk (Postfix) with ESMTP id A82C010DDB9; Wed, 24 Nov 2021 15:12:58 +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 Aqbxh24FVUwE; Wed, 24 Nov 2021 15:12:57 +0100 (CET) Received: from service-node1.lab.pantheon.local (unknown [46.229.239.141]) by lb.pantheon.sk (Postfix) with ESMTP id 7CD6B10DDB0; Wed, 24 Nov 2021 15:12:57 +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/pmd_output: fix pylama errors Date: Wed, 24 Nov 2021 15:12:56 +0100 Message-Id: <1637763176-5224-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/pmd_output.py:80: [E] E0704 The raise statement is not inside an except clause [pylint] Signed-off-by: Juraj Linkeš --- Lijuan, please add additional people to review if needed. --- framework/pmd_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/pmd_output.py b/framework/pmd_output.py index e2bf3687..113e85f6 100644 --- a/framework/pmd_output.py +++ b/framework/pmd_output.py @@ -77,7 +77,7 @@ class PmdOutput(): """ core_number = len(self.dut.cores) if core_number < 2: - raise + raise ValueError(f'Not enough cores on DUT {self.dut}') else: self.default_cores = "1S/2C/1T"