autotest: erase logs after downloading

This commit is contained in:
Andrew Tridgell 2013-12-29 07:13:57 +11:00
parent 6121b9c58e
commit b666680d79
1 changed files with 3 additions and 0 deletions

View File

@ -251,5 +251,8 @@ def log_download(mavproxy, mav, filename, timeout=60):
mav.wait_heartbeat()
mavproxy.send("log download latest %s\n" % filename)
mavproxy.expect("Finished downloading", timeout=timeout)
mavproxy.send("log erase\n")
mav.wait_heartbeat()
mav.wait_heartbeat()
return True