3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

test-runner: warn on files left after test completes

This commit is contained in:
James Prestwood 2021-02-25 14:01:05 -08:00 committed by Denis Kenzior
parent 2e55e00662
commit 670f063a30

View File

@ -1179,6 +1179,10 @@ def post_test(ctx, to_copy):
finally:
ctx.stop_test_processes()
allowed = ['phonesim.conf', 'certs', 'secrets', 'iwd']
for f in [f for f in os.listdir('/tmp') if f not in allowed]:
dbg("File %s was not cleaned up!" % f)
if ctx.args.valgrind:
with open('/tmp/valgrind.log', 'r') as f:
dbg(f.read())
@ -1274,6 +1278,7 @@ def run_auto_tests(ctx, args):
finally:
post_test(ctx, copied)
shutil.rmtree('/tmp/iwd')
shutil.rmtree('/tmp/certs')
shutil.rmtree('/tmp/secrets')
os.remove('/tmp/phonesim.conf')