[v1] framework/pmd_output: fix pylama errors
Checks
Commit Message
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
> -----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
@@ -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"