commit 670f063a309277ccc1e2ca39c411475bb3ff5ae9
parent 2e55e006621158f2d9b3441400608ab25a7f5ff9
Author: James Prestwood <prestwoj@gmail.com>
Date: Thu, 25 Feb 2021 14:01:05 -0800
test-runner: warn on files left after test completes
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/tools/test-runner b/tools/test-runner
@@ -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')