5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-03-12 01:23:56 -03:00

autotest: fixed handling of core files

This commit is contained in:
Andrew Tridgell 2017-12-12 08:45:56 +11:00
parent cabced82f1
commit 20d44136b0

View File

@ -419,8 +419,11 @@ def check_logs(step):
newname = buildlogs_path("%s.core" % vehicle) newname = buildlogs_path("%s.core" % vehicle)
print("Renaming %s to %s" % (corefile, newname)) print("Renaming %s to %s" % (corefile, newname))
shutil.move(corefile, newname) shutil.move(corefile, newname)
util.run_cmd('/bin/cp A*/A*.elf %s' % buildlogs_dirpath(), try:
directory=util.reltopdir('.')) util.run_cmd('/bin/cp build/sitl/bin/* %s' % buildlogs_dirpath(),
directory=util.reltopdir('.'))
except Exception:
print("Unable to save binary")
def run_tests(steps): def run_tests(steps):
"""Run a list of steps.""" """Run a list of steps."""