mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix line endings for Windows
This commit is contained in:
parent
b4bf3c355f
commit
9619b980c7
1 changed files with 10 additions and 2 deletions
|
@ -39,12 +39,20 @@ def holy(state_tree_prod):
|
|||
|
||||
@pytest.fixture
|
||||
def grail_scene33_file(grail):
|
||||
return grail / "scene33"
|
||||
file_obj = grail / "scene33"
|
||||
content = file_obj.read_bytes()
|
||||
content = content.replace(b"\r\n", b"\n")
|
||||
file_obj.write_bytes(content)
|
||||
return file_obj
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def grail_scene33_clearsign_file(grail_scene33_file):
|
||||
return grail_scene33_file.with_suffix(".clearsign.asc")
|
||||
file_obj = grail_scene33_file.with_suffix(".clearsign.asc")
|
||||
content = file_obj.read_bytes()
|
||||
content = content.replace(b"\r\n", b"\n")
|
||||
file_obj.write_bytes(content)
|
||||
return file_obj
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
Loading…
Add table
Reference in a new issue