commit f9c2fa7bb2191be097910ba59719e58fd863a8c1
parent b89720ca472b2abfebd818bb68d9de5475fb4294
Author: James Prestwood <prestwoj@gmail.com>
Date: Fri, 7 May 2021 13:26:20 -0700
test-runner: remove stale file after test
test-runner will print out if files were left behind after a
test which lets the developer know something was not cleaned
up. But in this case test-runner should also remove these files
so they are not left, and printed, for each subsequent test.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/tools/test-runner b/tools/test-runner
@@ -1186,6 +1186,7 @@ def post_test(ctx, to_copy):
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)
+ os.remove('/tmp/' + f)
if ctx.args.valgrind:
with open('/tmp/valgrind.log', 'r') as f: