mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
autotest: remove stray diagnostic files before run
This commit is contained in:
parent
2388f3a3d1
commit
fd803ddafc
@ -693,11 +693,20 @@ def run_tests(steps):
|
||||
global results
|
||||
|
||||
corefiles = glob.glob("core*")
|
||||
corefiles.extend(glob.glob("ap-*.core"))
|
||||
if corefiles:
|
||||
print('Removing corefiles: %s' % str(corefiles))
|
||||
for f in corefiles:
|
||||
os.unlink(f)
|
||||
|
||||
diagnostic_files = []
|
||||
for p in "dumpstack.sh_*", "dumpcore.sh_*", "autotest-*tlog":
|
||||
diagnostic_files.extend(glob.glob())
|
||||
if diagnostic_files:
|
||||
print('Removing diagnostic files: %s' % str(diagnostic_files))
|
||||
for f in diagnostic_files:
|
||||
os.unlink(f)
|
||||
|
||||
passed = True
|
||||
failed = []
|
||||
failed_testinstances = dict()
|
||||
|
Loading…
Reference in New Issue
Block a user