mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 04:32:37 +01:00
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.
This commit is contained in:
parent
36bc4e15c3
commit
ba5bc1f5b3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user