Merge pull request #1988 from dbungert/test-apt-mountpoint-install-tree

apt: fix mountpoint-install-tree test write dir
This commit is contained in:
Dan Bungert 2024-05-01 18:21:11 -06:00 committed by GitHub
commit e3b0805d3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 29 additions and 28 deletions

View File

@ -108,10 +108,11 @@ class TestAptConfigurer(SubiTestCase):
pass
async def test_run_apt_config_check(self):
with tempfile.TemporaryDirectory() as tempdir:
self.configurer.configured_tree = OverlayMountpoint(
upperdir="upperdir-install-tree",
lowers=["lowers1-install-tree"],
mountpoint="mountpoint-install-tree",
mountpoint=pathlib.Path(tempdir) / "mountpoint-install-tree",
)
async def astart_success(cmd, **kwargs):