commit ba5bc1f5b3069342a0d6aa7b361fd497c25afabb
parent 36bc4e15c30c3cd3f5ec950c5b31cc47cb6c1318
Author: James Prestwood <prestwoj@gmail.com>
Date: Thu, 29 Jul 2021 15:21:48 -0700
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.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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)