ci/test: change patch and its target to work on MacOS
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user