ci/test: change patch and its target to work on MacOS

This commit is contained in:
Ralph Lange
2025-08-28 14:53:47 +02:00
parent 3f77ee12af
commit df2367fcd3
2 changed files with 3 additions and 2 deletions

View File

@@ -863,7 +863,8 @@ class TestHooks(unittest.TestCase):
pass
with open(self.bla_file, 'w') as f:
f.write('''LINE1=YES
LINE2=NO''')
LINE2=NO
''')
def test_patchfile(self):
hook = os.path.join(builddir, 'test.patch')

View File

@@ -1,7 +1,7 @@
diff -ruN a/bla.txt b/bla.txt
--- a/bla.txt 2020-06-19 18:54:43.129076711 +0200
+++ b/bla.txt 2020-06-19 18:55:05.093948316 +0200
@@ -1,3 +1,3 @@
@@ -1,2 +1,2 @@
-LINE1=YES
+LINE1=NO
LINE2=NO