[PATCH v1 1/2] stats_reporter: properly use iterable in for cycle

Dong, JunX junx.dong at intel.com
Thu Apr 28 05:15:17 CEST 2022


Acked-by: Jun Dong <junx.dong at intel.com>

> -----Original Message-----
> From: Juraj Linkeš <juraj.linkes at pantheon.tech>
> Sent: Wednesday, April 27, 2022 3:42 PM
> To: Dong, JunX <junx.dong at intel.com>; Tu, Lijuan <lijuan.tu at intel.com>;
> ohilyard at iol.unh.edu
> Cc: dts at dpdk.org; Juraj Linkeš <juraj.linkes at pantheon.tech>
> Subject: [PATCH v1 1/2] stats_reporter: properly use iterable in for cycle
> 
> Signed-off-by: Juraj Linkeš <juraj.linkes at pantheon.tech>
> ---
>  framework/stats_reporter.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/framework/stats_reporter.py b/framework/stats_reporter.py
> index 80ac942c..1c1ab3fd 100644
> --- a/framework/stats_reporter.py
> +++ b/framework/stats_reporter.py
> @@ -70,7 +70,7 @@ class StatsReporter(object):
>                  "dpdk_version =
> {}\n".format(self.result.current_dpdk_version(duts[0]))
>              )
>          else:
> -            for dut in duts():
> +            for dut in duts:
>                  dpdk_version = self.result.current_dpdk_version(dut)
>                  self.stats_file.write(
>                      "{}.dpdk_version = {}\n".format(dut, dpdk_version)
> --
> 2.20.1



More information about the dts mailing list