tests: jailer cleanup bug fix
Fixed a bug in the integration testing framework, that would cause the
jailer context cleanup code to unlink more than just its own jail
directory.
@@ -170,6 +170,7 @@ class JailerContext:
def cleanup(self):
"""Clean up this jailer context."""
# pylint: disable=subprocess-run-check
+ if self.jailer_id:
shutil.rmtree(self.chroot_base_with_id(), ignore_errors=True)
if self.netns:
