mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Tools: autotest: use buildlogs_path for all buildlogs
This commit is contained in:
parent
b2cb6e196c
commit
31ba99e58a
@ -1424,7 +1424,7 @@ class AutoTestCopter(AutoTest):
|
|||||||
# wait for disarm
|
# wait for disarm
|
||||||
self.mav.motors_disarmed_wait()
|
self.mav.motors_disarmed_wait()
|
||||||
|
|
||||||
log_filepath = util.reltopdir("../buildlogs/ArduCopter-log.bin")
|
log_filepath = self.buildlogs_path("ArduCopter-log.bin")
|
||||||
if not self.log_download(log_filepath):
|
if not self.log_download(log_filepath):
|
||||||
failed_test_msg = "log_download failed"
|
failed_test_msg = "log_download failed"
|
||||||
self.progress(failed_test_msg)
|
self.progress(failed_test_msg)
|
||||||
@ -1484,7 +1484,7 @@ class AutoTestCopter(AutoTest):
|
|||||||
self.set_rc(8, 1000)
|
self.set_rc(8, 1000)
|
||||||
|
|
||||||
# mission ends with disarm so should be ok to download logs now
|
# mission ends with disarm so should be ok to download logs now
|
||||||
log_path = util.reltopdir("../buildlogs/Helicopter-log.bin")
|
log_path = self.buildlogs_path("Helicopter-log.bin")
|
||||||
if not self.log_download(log_path):
|
if not self.log_download(log_path):
|
||||||
failed_test_msg = "log_download failed"
|
failed_test_msg = "log_download failed"
|
||||||
self.progress(failed_test_msg)
|
self.progress(failed_test_msg)
|
||||||
|
@ -92,7 +92,7 @@ class AutoTestSub(AutoTest):
|
|||||||
logfile = self.mavproxy.match.group(1)
|
logfile = self.mavproxy.match.group(1)
|
||||||
self.progress("LOGFILE %s" % logfile)
|
self.progress("LOGFILE %s" % logfile)
|
||||||
|
|
||||||
buildlog = util.reltopdir("../buildlogs/ArduSub-test.tlog")
|
buildlog = self.buildlogs_path("ArduSub-test.tlog")
|
||||||
self.progress("buildlog=%s" % buildlog)
|
self.progress("buildlog=%s" % buildlog)
|
||||||
if os.path.exists(buildlog):
|
if os.path.exists(buildlog):
|
||||||
os.unlink(buildlog)
|
os.unlink(buildlog)
|
||||||
|
@ -72,7 +72,7 @@ class AutoTestQuadPlane(AutoTest):
|
|||||||
logfile = self.mavproxy.match.group(1)
|
logfile = self.mavproxy.match.group(1)
|
||||||
self.progress("LOGFILE %s" % logfile)
|
self.progress("LOGFILE %s" % logfile)
|
||||||
|
|
||||||
buildlog = util.reltopdir("../buildlogs/QuadPlane-test.tlog")
|
buildlog = self.buildlogs_path("QuadPlane-test.tlog")
|
||||||
self.progress("buildlog=%s" % buildlog)
|
self.progress("buildlog=%s" % buildlog)
|
||||||
if os.path.exists(buildlog):
|
if os.path.exists(buildlog):
|
||||||
os.unlink(buildlog)
|
os.unlink(buildlog)
|
||||||
|
Loading…
Reference in New Issue
Block a user