mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
CICD: openwrt ctl expect login improvements.
This helped with logging into recent TIP openwrt images. Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
@@ -134,6 +134,9 @@ def main():
|
|||||||
egg.sendline(NL)
|
egg.sendline(NL)
|
||||||
try:
|
try:
|
||||||
i = egg.expect([prompt, "Please press Enter to activate", "login:"], timeout=3)
|
i = egg.expect([prompt, "Please press Enter to activate", "login:"], timeout=3)
|
||||||
|
if (i == 1):
|
||||||
|
egg.setdline(NL)
|
||||||
|
i = egg.expect([prompt, "Please press Enter to activate", "login:"], timeout=3)
|
||||||
if (i == 2):
|
if (i == 2):
|
||||||
egg.sendline(user)
|
egg.sendline(user)
|
||||||
egg.expect("Password:")
|
egg.expect("Password:")
|
||||||
|
|||||||
Reference in New Issue
Block a user