[dts] [PATCH V1] framework/crb: add check key of pktgen in crb.cfg
lihong
lihongx.ma at intel.com
Wed Feb 26 19:00:59 CET 2020
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