ops: protect mounted test artifacts and document capacity adoption gate
Owned disk maintenance only / maintenance (push) Successful in 11s

This commit is contained in:
Canina Hermes committed 2026-11-19 07:33:24 +00:00
1 parent 6dec2c1469
commit 63ced7b44a
3 files changed
+41 -2

No files matched your search

+5
View File
@@ -17,4 +17,9 @@ class Tests(unittest.TestCase):
try:self.assertEqual(m.retire(r),[])
finally:f.close()
self.assertEqual(m.retire(r),['busy'])
def test_mounted_artifact_is_preserved(self):
m=importlib.util.module_from_spec(spec);spec.loader.exec_module(m)
with tempfile.TemporaryDirectory() as d:
r=pathlib.Path(d);p=r/'mounted';p.mkdir();(p/'.disposable-test').write_text('canina-managed-test-v1\n');os.utime(p,(1,1))
self.assertEqual(m.retire(r,protected=[str(p/'result')]),[])
if __name__=='__main__':unittest.main()