mount: remove test-mount directory

Change-Id: Iff128a22ac7d0fa3e6514e62e1f4ea92a60f052b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
pull/9014/head
Ashod Nakashian 2024-05-08 17:42:37 -04:00 committed by Michael Meeks
parent b33f822871
commit 6f725087a1
1 changed files with 5 additions and 1 deletions

View File

@ -247,7 +247,11 @@ void cleanupJails(const std::string& root)
// legacy jails at the top-level
for (const auto& newJail : newJails)
{
tryRemoveJail(Poco::Path(childDir, newJail).toString());
const std::string path = Poco::Path(childDir, newJail).toString();
if (newJail == CoolTestMountpoint)
safeRemoveDir(path);
else
tryRemoveJail(path);
}
// top level linkable and tmp mount point.