aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/ssh.py
diff options
context:
space:
mode:
authorYulong Pei <yulong.pei@intel.com>2018-08-07 18:37:18 +0800
committerPeter Mikus <pmikus@cisco.com>2018-08-24 18:40:52 +0000
commit7afd133d67400a062b0d3ae2ecf8b6ab380077fe (patch)
tree548019c5c250d52f4ab6bfd6a50fd5efe5fef559 /resources/libraries/python/ssh.py
parent3ead402fb624ac250aa48728b4c5ff0506633189 (diff)
add the expected prompt for ubuntu root user
if ssh use root account to login ubuntu os, its prompt is ":~# ", so add it to let csit test can run with root account. Change-Id: I21f5380245324c8e48099433e3d374188e9001d9 Signed-off-by: Yulong Pei <yulong.pei@intel.com>
Diffstat (limited to 'resources/libraries/python/ssh.py')
-rw-r--r--resources/libraries/python/ssh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/libraries/python/ssh.py b/resources/libraries/python/ssh.py
index 7518cabcc3..7368c6980a 100644
--- a/resources/libraries/python/ssh.py
+++ b/resources/libraries/python/ssh.py
@@ -264,7 +264,7 @@ class SSH(object):
chan.set_combine_stderr(True)
buf = ''
- while not buf.endswith((":~$ ", "~]$ ", "~]# ")):
+ while not buf.endswith((":~# ", ":~$ ", "~]$ ", "~]# ")):
try:
chunk = chan.recv(self.__MAX_RECV_BUF)
if not chunk: