autotest: remove corefiles at start of run

These lead to false-positive failures in the test suite
This commit is contained in:
Peter Barker 2021-04-28 14:58:04 +10:00 committed by Peter Barker
parent ac57950575
commit 117a44b589
1 changed files with 6 additions and 0 deletions

View File

@ -671,6 +671,12 @@ def run_tests(steps):
"""Run a list of steps."""
global results
corefiles = glob.glob("core*")
if corefiles:
print('Removing corefiles: %s' % str(corefiles))
for f in corefiles:
os.unlink(f)
passed = True
failed = []
failed_testinstances = dict()