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
1 changed files with 5 additions and 2 deletions

View File

@ -419,8 +419,11 @@ def check_logs(step):
newname = buildlogs_path("%s.core" % vehicle)
print("Renaming %s to %s" % (corefile, newname))
shutil.move(corefile, newname)
util.run_cmd('/bin/cp A*/A*.elf %s' % buildlogs_dirpath(),
directory=util.reltopdir('.'))
try:
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):
"""Run a list of steps."""