From ba5bc1f5b3069342a0d6aa7b361fd497c25afabb Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 29 Jul 2021 15:21:48 -0700 Subject: [PATCH] test-runner: remove TLS debugging artifact When logging is enabled TLS debugging is turned on which creates a PEM file during runtime. There is no way for IWD itself to clean this up since its meant to be there for debugging. --- tools/test-runner | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/test-runner b/tools/test-runner index 98164f7a..fa3c434f 100755 --- a/tools/test-runner +++ b/tools/test-runner @@ -1192,6 +1192,10 @@ def post_test(ctx, to_copy): dbg("\n") os.remove('/tmp/' + f) + # Special case for when logging is enabled + if os.path.isfile('/tmp/iwd-tls-debug-server-cert.pem'): + os.remove('/tmp/iwd-tls-debug-server-cert.pem') + 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)