cloud-init-dev team mailing list archive
-
cloud-init-dev team
-
Mailing list archive
-
Message #03472
[Merge] ~smoser/cloud-init:fix/fake-extended-tempfile-cleanup into cloud-init:master
Scott Moser has proposed merging ~smoser/cloud-init:fix/fake-extended-tempfile-cleanup into cloud-init:master.
Commit message:
tests: remove a temp file used in bootcmd tests.
The bootcmd test was leaving files in the tmpdir named
ci-FakeExtendedTempFile.XXXXXX.
This cleans those up.
Requested reviews:
cloud-init commiters (cloud-init-dev)
For more details, see:
https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/331168
--
Your team cloud-init commiters is requested to review the proposed merge of ~smoser/cloud-init:fix/fake-extended-tempfile-cleanup into cloud-init:master.
diff --git a/tests/unittests/test_handler/test_handler_bootcmd.py b/tests/unittests/test_handler/test_handler_bootcmd.py
index 580017e..dbf43e0 100644
--- a/tests/unittests/test_handler/test_handler_bootcmd.py
+++ b/tests/unittests/test_handler/test_handler_bootcmd.py
@@ -29,6 +29,7 @@ class FakeExtendedTempFile(object):
def __exit__(self, exc_type, exc_value, traceback):
self.handle.close()
+ util.del_file(self.handle.name)
class TestBootcmd(CiTestCase):