mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 23:35:10 +00:00
automation_roots.rs and protocol_props.rs wrote their files into folders made by vectorcraft_testkit::temp_dir (vectorcraft-testkit-roots-<tag>-<pid>, mcp-junk, mcp-confined), and nothing removed them after the run. A shared tests/common module adds TempFolder, which takes the folder from temp_dir, with its checks against a folder made by another user, and removes it with everything in it when dropped, also when the test panics, as the findfiles tests' Tree guard does (crates/engine/src/cmd/findfiles/tests.rs:49). Each proptest case of a_confined_server_writes_only_inside_its_root now gets a new folder. A new test checks that the folder is removed on drop and after a panic.