[DTS][PATCH V1 04/10] framework/crb:modify code when pexpect contains '#', replace '#' with 'mev-acc'
Jin Ling
jin.ling at intel.com
Sun Jul 16 11:07:48 CEST 2023
Signed-off-by: Jin Ling <jin.ling at intel.com>
---
framework/crb.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/framework/crb.py b/framework/crb.py
index 9e3b0a58..0cd95553 100644
--- a/framework/crb.py
+++ b/framework/crb.py
@@ -103,6 +103,12 @@ class Crb(object):
if trim_whitespace:
expected = expected.strip()
+ try:
+ if "#" in cmds and self.acc_test_session !=None:
+ expected = "mev-acc"
+ except:
+ pass
+
# sometimes there will be no alt_session like VM dut
if alt_session and self.alt_session:
return self.alt_session.session.send_expect(cmds, expected, timeout, verify)
--
2.34.1
More information about the dts
mailing list