From 20d44136b0aff574ce205f98d2b256b960e45587 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 12 Dec 2017 08:45:56 +1100 Subject: [PATCH] autotest: fixed handling of core files --- Tools/autotest/autotest.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Tools/autotest/autotest.py b/Tools/autotest/autotest.py index cf677bb826..da84553aad 100755 --- a/Tools/autotest/autotest.py +++ b/Tools/autotest/autotest.py @@ -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."""