mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-12-02 04:53:40 +08:00
Adopt Ty 0.0.112
This commit is contained in:
@@ -34,7 +34,7 @@ class TestPlotJuggler(OpenpilotTestCase):
|
||||
with Timeout(180):
|
||||
while "Done reading Rlog data" not in output.splitlines():
|
||||
for key, _ in selector.select(0.1):
|
||||
chunk = os.read(key.fileobj.fileno(), 65536)
|
||||
chunk = os.read(key.fd, 65536)
|
||||
if chunk:
|
||||
output += chunk.decode("utf-8", errors="replace")
|
||||
else:
|
||||
@@ -45,7 +45,7 @@ class TestPlotJuggler(OpenpilotTestCase):
|
||||
self.fail(f"PlotJuggler did not report startup within 180 seconds:\n{output}")
|
||||
time.sleep(2)
|
||||
for key, _ in selector.select(0):
|
||||
chunk = os.read(key.fileobj.fileno(), 65536)
|
||||
chunk = os.read(key.fd, 65536)
|
||||
output += chunk.decode("utf-8", errors="replace")
|
||||
self.assertIsNone(p.poll(), f"PlotJuggler exited after startup (status {p.returncode}):\n{output}")
|
||||
self.assertNotIn("Raw file read failed", output)
|
||||
|
||||
Reference in New Issue
Block a user