autotest: correct checking for no-logs string

This commit is contained in:
Peter Barker 2020-08-03 23:11:44 +10:00 committed by Peter Barker
parent b2748f19f6
commit 4640c24872
1 changed files with 1 additions and 1 deletions

View File

@ -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))