mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-21 22:09:23 +01:00
test-runner: clean up temporary files
This commit is contained in:
parent
1dc4d6e9ba
commit
ed80dc68aa
@ -497,6 +497,8 @@ class Namespace:
|
||||
print("Killing process %s" % p.name)
|
||||
self.stop_process(p)
|
||||
|
||||
os.remove(self.dbus_address.split('=')[1])
|
||||
|
||||
def __del__(self):
|
||||
print("Removing namespace %s" % self.name)
|
||||
self.reset()
|
||||
@ -1168,6 +1170,10 @@ def run_auto_tests(ctx, args):
|
||||
finally:
|
||||
post_test(ctx, copied)
|
||||
|
||||
shutil.rmtree('/tmp/certs')
|
||||
shutil.rmtree('/tmp/secrets')
|
||||
os.remove('/tmp/phonesim.conf')
|
||||
|
||||
# Write out kernel log
|
||||
if ctx.args.log:
|
||||
Process(["dmesg"], ctx=ctx, wait=True)
|
||||
|
Loading…
Reference in New Issue
Block a user