Skip to content

Commit 9012a3d

Browse files
committed
fix(test_config.py): ensure /etc/atomic.conf exists before bind-mount
1 parent a486b1e commit 9012a3d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tests/test_config.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ def test_config_not_owned_by_root(self, tmp_path):
115115
# Ownership check only triggers for /etc/atomic.conf.
116116
# Use a real path in /etc via bind-mount over tmpfs so no real file is modified.
117117
real_path = Path("/etc/atomic.conf")
118+
# Ensure mount point exists before bind-mount
119+
real_path.touch(exist_ok=True)
118120
mount_point = tmp_path / "etc_atomic_conf"
119121
mount_point.write_text("ESP=/efi\n")
120122
# Bind-mount tmp file over /etc/atomic.conf

0 commit comments

Comments
 (0)