[V1,04/10] framework/crb:modify code when pexpect contains '#', replace '#' with 'mev-acc'

Message ID 20230716090753.1590148-5-jin.ling@intel.com (mailing list archive)
State New
Headers
Series add functions to test MEV |

Commit Message

Jin Ling July 16, 2023, 9:07 a.m. UTC
  Signed-off-by: Jin Ling <jin.ling@intel.com>
---
 framework/crb.py | 6 ++++++
 1 file changed, 6 insertions(+)
  

Patch

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)