test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] framework/crb: optimize code
@ 2021-03-26  3:20 Haiyang Zhao
  2021-03-26  3:31 ` Zhao, HaiyangX
  0 siblings, 1 reply; 3+ messages in thread
From: Haiyang Zhao @ 2021-03-26  3:20 UTC (permalink / raw)
  To: dts; +Cc: lijuan.tu, Haiyang Zhao

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@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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-30  2:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-26  3:20 [dts] [PATCH V1] framework/crb: optimize code Haiyang Zhao
2021-03-26  3:31 ` Zhao, HaiyangX
2021-03-30  2:28   ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).