cisco_wifi_ctl.py : sequence the prompts correctly

This commit is contained in:
Chuck SmileyRekiere
2020-12-10 20:04:39 -07:00
parent 94e5738539
commit 92ee0b67ee

View File

@@ -217,7 +217,7 @@ def main():
if i == 0:
logg.info("9800 found Escape character is '^] i:{} before: {} after: {}".format(i,egg.before,egg.after))
#egg.sendline(CR)
egg.sendline(CR)
found_escape = True
sleep(0.1)
j = egg.expect_exact(["CCP","CCP_EN","User:","Password:","CCP_CONFIG",pexpect.TIMEOUT],timeout=3)
@@ -561,7 +561,7 @@ def main():
if i == 0:
logg.info("9800 found Escape character is '^] i:{} before: {} after: {}".format(i,egg.before,egg.after))
#egg.sendline(CR)
egg.sendline(CR)
found_escape = True
sleep(0.1)
j = egg.expect_exact(["CCP","CCP_EN","User:","Password:",pexpect.TIMEOUT],timeout=3)