mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 15:30:16 +08:00
mavsdk_tests: raise timeout for czspawn
And provide better output about what happened.
This commit is contained in:
@@ -63,8 +63,10 @@ class Runner:
|
|||||||
self.thread = threading.Thread(target=self.process_output)
|
self.thread = threading.Thread(target=self.process_output)
|
||||||
self.thread.start()
|
self.thread.start()
|
||||||
if self.wait_until_complete:
|
if self.wait_until_complete:
|
||||||
if self.wait(5.0) != 0:
|
timeout_s = 10.0
|
||||||
raise TimeoutError("Command not completed")
|
if self.wait(timeout_s) != 0:
|
||||||
|
raise TimeoutError("Command '{}' not completed within {}"
|
||||||
|
.format(self.cmd, timeout_s))
|
||||||
|
|
||||||
def process_output(self) -> None:
|
def process_output(self) -> None:
|
||||||
assert self.process.stdout is not None
|
assert self.process.stdout is not None
|
||||||
|
|||||||
Reference in New Issue
Block a user