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

View File

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