Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/common/connections/ssh_console_conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ def login_stage_2(self,
msg = "Login failed: {}".format(self.host)
raise NetMikoAuthenticationException(msg)

self.write_channel(self.RETURN)
# Only send blank CR to wake up terminal when still waiting for username prompt;
# once username has been sent, stop sending CRs so no empty password arrives before 'Password:' prompt
if not user_sent:
self.write_channel(self.RETURN)
time.sleep(0.5 * delay_factor)
i += 1
except EOFError:
Expand Down
Loading