[V1,04/10] framework/crb:modify code when pexpect contains '#', replace '#' with 'mev-acc'
Commit Message
Signed-off-by: Jin Ling <jin.ling@intel.com>
---
framework/crb.py | 6 ++++++
1 file changed, 6 insertions(+)
@@ -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)