pytest-testinfra icon indicating copy to clipboard operation
pytest-testinfra copied to clipboard

Chroot backend

Open andrea-peter opened this issue 11 months ago • 1 comments

Hello, I noticed there's a chroot backend that is not documented, I also noticed that it does not work because of a bug. What are the plans for that backend? Would you accept pull-requests to fix it?

andrea-peter avatar Mar 03 '25 12:03 andrea-peter

I found a workaround by creating things by hand instead of using get_host()

rootfs = "/the/rootfs/"
backend = testinfra.backend.chroot.ChrootBackend(rootfs)
self.host = testinfra.host.Host(backend)

andrea-peter avatar Mar 04 '25 11:03 andrea-peter