nixpkgs/pkgs/tools/virtualization/cloud-init/0002-fix-test-logs-on-nixos.patch
Kermina Awad 4155b779ce cloud-init: 24.2 -> 25.1.3
Auto update broke with version 24.3, this was caused by the following
commit: canonical/cloud-init@c28092f

The above commit changed some tests to write temporary files with
specific permissions, which seems to be causing trouble for us. I've
included a patch which removes these permissions, and the build is
working fine now.
2025-07-01 13:04:53 -04:00

23 lines
841 B
Diff

diff --git a/tests/unittests/cmd/devel/test_logs.py b/tests/unittests/cmd/devel/test_logs.py
index 78466e8d0..cc2b7246d 100644
--- a/tests/unittests/cmd/devel/test_logs.py
+++ b/tests/unittests/cmd/devel/test_logs.py
@@ -179,7 +179,7 @@ class TestCollectLogs:
for to_write in to_collect:
write_file(
- tmp_path / to_write, pathlib.Path(to_write).name, mode=0x700
+ tmp_path / to_write, pathlib.Path(to_write).name
)
collect_dir = tmp_path / "collect"
@@ -225,7 +225,7 @@ class TestCollectLogs:
for to_write in to_collect:
write_file(
- tmp_path / to_write, pathlib.Path(to_write).name, mode=0x700
+ tmp_path / to_write, pathlib.Path(to_write).name
)
collect_dir = tmp_path / "collect"