autotest: correct number of logs

This commit is contained in:
Andy Piper 2020-12-23 12:52:36 +00:00 committed by Peter Barker
parent 779c2a9e5f
commit f702288ad2

View File

@ -6182,8 +6182,8 @@ Also, ignores heartbeats not from our target system'''
else:
self.progress("SITL is NOT running")
raise NotAchievedException("Received %s" % str(e))
if int(self.mavproxy.match.group(2)) != 2:
raise NotAchievedException("Expected 2 logs")
if int(self.mavproxy.match.group(2)) != 3:
raise NotAchievedException("Expected 3 logs got %s" % (self.mavproxy.match.group(2)))
self.mavproxy.send("log download 1 logs/dataflash-log-erase2.BIN\n")
self.mavproxy.expect("Finished downloading", timeout=120)