test(oci): isolate cleanup and recovery fixtures from the host

This commit is contained in:
Jonatan
2026-10-28 11:43:36 +01:00
parent bf8c495d3b
commit a259b945eb
6 changed files with 22 additions and 3 deletions
+3
View File
@@ -19,6 +19,9 @@ class CarriedConfigCacheTests(unittest.TestCase):
def setUp(self):
self.tmp = tempfile.TemporaryDirectory()
self.addCleanup(self.tmp.cleanup)
contract = patch.object(carried, 'STACK_CONTRACT', str(Path(self.tmp.name) / 'stack-{}.json'))
contract.start()
self.addCleanup(contract.stop)
self.root = Path(self.tmp.name) / 'instances'
self.source = Path(self.tmp.name) / 'lxc'
self.source.mkdir()