mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
autotest: correct checking for no-logs string
This commit is contained in:
parent
b2748f19f6
commit
4640c24872
@ -5691,7 +5691,7 @@ switch value'''
|
||||
loaded_module = True
|
||||
self.mavproxy.send("log list\n")
|
||||
self.mavproxy.expect(["lastLog ([0-9]+)", "No logs"])
|
||||
if self.mavproxy.match.group(1) == "No logs":
|
||||
if self.mavproxy.match.group(0) == "No logs":
|
||||
num_log = None
|
||||
else:
|
||||
num_log = int(self.mavproxy.match.group(1))
|
||||
|
Loading…
Reference in New Issue
Block a user