Skip to content

Commit 3a4066a

Browse files
authored
Merge pull request #1 from rjeschmi/gzip-patch
Adding test cases
2 parents 62677b3 + 74557f2 commit 3a4066a

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

test/framework/filetools.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,12 @@ def test_apply_patch(self):
793793
pattern = "I'm a toy, and very proud of it"
794794
self.assertTrue(pattern in patched)
795795

796+
toy_patch_gz = os.path.join(testdir, 'sandbox', 'sources', 'toy', 'toy-0.0_gzip.patch.gz')
797+
self.assertTrue(ft.apply_patch(toy_patch_gz, path))
798+
patched_gz = ft.read_file(os.path.join(path, 'toy-0.0', 'toy.source'))
799+
pattern = "I'm a toy, and very very proud of it"
800+
self.assertTrue(pattern in patched_gz)
801+
796802
# trying the patch again should fail
797803
self.assertErrorRegex(EasyBuildError, "Couldn't apply patch file", ft.apply_patch, toy_patch, path)
798804

210 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)