mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
autotest: fixed pexpect timeout
This commit is contained in:
parent
97bc4e90a3
commit
6eb25d2c25
@ -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