[dts] [PATCH V1] framework/crb: optimize code
Haiyang Zhao
haiyangx.zhao at intel.com
Fri Mar 26 04:20:23 CET 2021
when the param dut_arch in conf/crbs.cfg not exist, dts will generate
a keyerror exception and terminate the test, but this param could not
be set actually.
Signed-off-by: Haiyang Zhao <haiyangx.zhao 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 cd29b8e3..e7c1cc1c 100644
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -666,7 +666,7 @@ class Crb(object):
if self.crb['bypass core0'] and core == '0' and socket == '0':
self.logger.info("Core0 bypassed")
continue
- if self.crb['dut arch'] == "arm64":
+ if self.crb.get('dut arch') == "arm64":
self.cores.append(
{'thread': thread, 'socket': node, 'core': coremap[core]})
else:
--
2.17.1
More information about the dts
mailing list