[dts] [PATCH V1] framework/crb: add check key of pktgen in crb.cfg

Tu, Lijuan lijuan.tu at intel.com
Tue Mar 3 06:54:43 CET 2020


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of lihong
> Sent: Thursday, February 27, 2020 2:01 AM
> To: dts at dpdk.org
> Cc: Ma, LihongX <lihongx.ma at intel.com>
> Subject: [dts] [PATCH V1] framework/crb: add check key of pktgen in crb.cfg
> 
> Signed-off-by: lihong <lihongx.ma at intel.com>
> ---
>  framework/crb.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/framework/crb.py b/framework/crb.py index 2ac197e..2bf99e1
> 100644
> --- a/framework/crb.py
> +++ b/framework/crb.py
> @@ -472,7 +472,7 @@ class Crb(object):
>          if the tester and dut on same server
>          and pktgen is trex, do not kill the process
>          """
> -        if self.crb['pktgen'].lower() == 'trex':
> +        if 'pktgen' in self.crb and (self.crb['pktgen'] is not None) and
> (self.crb['pktgen'].lower() == 'trex'):
>              if self.crb['IP'] == self.crb['tester IP'] and self.trex_prefix is None:
>                  conf_inst = PktgenConf('trex')
>                  conf_info = conf_inst.load_pktgen_config()
> --
> 2.7.4



More information about the dts mailing list