Browse Source

autotest: correct number of logs

c415-sdk
Andy Piper 4 years ago committed by Peter Barker
parent
commit
f702288ad2
  1. 4
      Tools/autotest/common.py

4
Tools/autotest/common.py

@ -6182,8 +6182,8 @@ Also, ignores heartbeats not from our target system''' @@ -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)

Loading…
Cancel
Save