commit ed80dc68aa22d7541175138cfaf0ce5c6ab7f399
parent 1dc4d6e9babeb9c347d678508981f365a15af059
Author: James Prestwood <prestwoj@gmail.com>
Date: Fri, 5 Feb 2021 15:53:06 -0800
test-runner: clean up temporary files
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/tools/test-runner b/tools/test-runner
@@ -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)