nixpkgs/pkgs/tools/virtualization/cloud-init/0002-fix-test-logs-on-nixos.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
841 B
Diff
Raw Permalink Normal View History

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"