mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -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:
|
except pexpect.TIMEOUT:
|
||||||
e.expect_user_callback(e)
|
e.expect_user_callback(e)
|
||||||
pass
|
pass
|
||||||
raise pexpect.TIMEOUT
|
print("Timed out looking for %s" % pattern)
|
||||||
|
raise pexpect.TIMEOUT(timeout)
|
||||||
|
|
||||||
e.expect_user_callback = callback
|
e.expect_user_callback = callback
|
||||||
e.expect_saved = e.expect
|
e.expect_saved = e.expect
|
||||||
|
Loading…
Reference in New Issue
Block a user