mirror of https://github.com/ArduPilot/ardupilot
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
|
||||
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):
|
||||
failed_test_msg = "log_download failed"
|
||||
self.progress(failed_test_msg)
|
||||
|
@ -1484,7 +1484,7 @@ class AutoTestCopter(AutoTest):
|
|||
self.set_rc(8, 1000)
|
||||
|
||||
# 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):
|
||||
failed_test_msg = "log_download failed"
|
||||
self.progress(failed_test_msg)
|
||||
|
|
|
@ -92,7 +92,7 @@ class AutoTestSub(AutoTest):
|
|||
logfile = self.mavproxy.match.group(1)
|
||||
self.progress("LOGFILE %s" % logfile)
|
||||
|
||||
buildlog = util.reltopdir("../buildlogs/ArduSub-test.tlog")
|
||||
buildlog = self.buildlogs_path("ArduSub-test.tlog")
|
||||
self.progress("buildlog=%s" % buildlog)
|
||||
if os.path.exists(buildlog):
|
||||
os.unlink(buildlog)
|
||||
|
|
|
@ -72,7 +72,7 @@ class AutoTestQuadPlane(AutoTest):
|
|||
logfile = self.mavproxy.match.group(1)
|
||||
self.progress("LOGFILE %s" % logfile)
|
||||
|
||||
buildlog = util.reltopdir("../buildlogs/QuadPlane-test.tlog")
|
||||
buildlog = self.buildlogs_path("QuadPlane-test.tlog")
|
||||
self.progress("buildlog=%s" % buildlog)
|
||||
if os.path.exists(buildlog):
|
||||
os.unlink(buildlog)
|
||||
|
|
Loading…
Reference in New Issue