mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
autotest: fixed pexpect timeout
This commit is contained in:
parent
f4da7e96d2
commit
87eefc0b34
@ -135,7 +135,8 @@ def expect_setup_callback(e, callback):
|
||||
except pexpect.TIMEOUT:
|
||||
e.expect_user_callback(e)
|
||||
pass
|
||||
raise pexpect.TIMEOUT
|
||||
print("Timed out looking for %s" % pattern)
|
||||
raise pexpect.TIMEOUT(timeout)
|
||||
|
||||
e.expect_user_callback = callback
|
||||
e.expect_saved = e.expect
|
||||
|
Loading…
Reference in New Issue
Block a user