mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 14:08:45 -04:00
autotest: fixed handling of core files
This commit is contained in:
parent
cabced82f1
commit
20d44136b0
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user