Browse Source

autotest: correct checking for no-logs string

zr-v5.1
Peter Barker 5 years ago committed by Peter Barker
parent
commit
4640c24872
  1. 2
      Tools/autotest/common.py

2
Tools/autotest/common.py

@ -5691,7 +5691,7 @@ switch value'''
loaded_module = True loaded_module = True
self.mavproxy.send("log list\n") self.mavproxy.send("log list\n")
self.mavproxy.expect(["lastLog ([0-9]+)", "No logs"]) 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 num_log = None
else: else:
num_log = int(self.mavproxy.match.group(1)) num_log = int(self.mavproxy.match.group(1))

Loading…
Cancel
Save