[v1] framework/pmd_output: fix pylama errors

Message ID 1637763176-5224-1-git-send-email-juraj.linkes@pantheon.tech (mailing list archive)
State Accepted
Headers
Series [v1] framework/pmd_output: fix pylama errors |

Checks

Context Check Description
ci/Intel-dts-suite-test fail Testing issues

Commit Message

Juraj Linkeš Nov. 24, 2021, 2:12 p.m. UTC
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š <juraj.linkes@pantheon.tech>
---
Lijuan, please add additional people to review if needed.
---
 framework/pmd_output.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Tu, Lijuan Jan. 14, 2022, 8 a.m. UTC | #1
> -----Original Message-----
> From: Juraj Linkeš <juraj.linkes@pantheon.tech>
> Sent: 2021年11月24日 22:13
> To: Tu, Lijuan <lijuan.tu@intel.com>; ohilyard@iol.unh.edu
> Cc: dts@dpdk.org; Juraj Linkeš <juraj.linkes@pantheon.tech>
> Subject: [PATCH v1] framework/pmd_output: fix pylama errors
> 
> 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š <juraj.linkes@pantheon.tech>

Applied, thanks
  

Patch

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"