3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

test-runner: clean up temporary files

This commit is contained in:
James Prestwood 2021-02-05 15:53:06 -08:00 committed by Denis Kenzior
parent 1dc4d6e9ba
commit ed80dc68aa

View File

@ -497,6 +497,8 @@ class Namespace:
print("Killing process %s" % p.name) print("Killing process %s" % p.name)
self.stop_process(p) self.stop_process(p)
os.remove(self.dbus_address.split('=')[1])
def __del__(self): def __del__(self):
print("Removing namespace %s" % self.name) print("Removing namespace %s" % self.name)
self.reset() self.reset()
@ -1168,6 +1170,10 @@ def run_auto_tests(ctx, args):
finally: finally:
post_test(ctx, copied) post_test(ctx, copied)
shutil.rmtree('/tmp/certs')
shutil.rmtree('/tmp/secrets')
os.remove('/tmp/phonesim.conf')
# Write out kernel log # Write out kernel log
if ctx.args.log: if ctx.args.log:
Process(["dmesg"], ctx=ctx, wait=True) Process(["dmesg"], ctx=ctx, wait=True)