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:
parent
cabced82f1
commit
20d44136b0
@ -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."""
|
||||||
|
Loading…
Reference in New Issue
Block a user