Merge ~twom/launchpad:oci-buildbehaviour into launchpad:master

Proposed by Tom Wardill
Status: Merged
Approved by: Tom Wardill
Approved revision: de20903c7db065f04c173d2cad9404b56590fc7a
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~twom/launchpad:oci-buildbehaviour
Merge into: launchpad:master
Diff against target: 12 lines (+1/-0)
1 file modified
lib/lp/oci/tests/test_ocirecipebuildbehaviour.py (+1/-0)
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+380273@code.launchpad.net

Commit message

Add cleanup for test_files_dir in OCI build behaviour tests

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/lib/lp/oci/tests/test_ocirecipebuildbehaviour.py b/lib/lp/oci/tests/test_ocirecipebuildbehaviour.py
2index 4132179..e81fbe7 100644
3--- a/lib/lp/oci/tests/test_ocirecipebuildbehaviour.py
4+++ b/lib/lp/oci/tests/test_ocirecipebuildbehaviour.py
5@@ -410,6 +410,7 @@ class TestHandleStatusForOCIRecipeBuild(MakeOCIBuildMixin, TrialTestCase,
6 }]
7
8 self.test_files_dir = tempfile.mkdtemp()
9+ self.addCleanup(shutil.rmtree, self.test_files_dir)
10 self._createTestFile('buildlog', '', 'buildlog')
11 self._createTestFile(
12 'manifest.json',

Subscribers

People subscribed via source and target branches

to status/vote changes: