Skip to content

Commit 3c1c212

Browse files
authored
Merge pull request #2 from boegel/copy_exts_patches
enhance test to verify that extension patches were copied to 'easybuild' subdir in installation directory
2 parents e3d56b2 + f3fb6c0 commit 3c1c212

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/framework/toy_build.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,6 +1387,16 @@ def test_toy_extension_patches_postinstallcmds(self):
13871387
fn = 'created-via-postinstallcmds.txt'
13881388
self.assertExists(os.path.join(installdir, fn))
13891389

1390+
# make sure that patch file for extension was copied to 'easybuild' subdir in installation directory
1391+
easybuild_subdir = os.path.join(installdir, 'easybuild')
1392+
patches = sorted(os.path.basename(x) for x in glob.glob(os.path.join(easybuild_subdir, '*.patch')))
1393+
expected_patches = [
1394+
'bar-0.0_fix-silly-typo-in-printf-statement.patch',
1395+
'bar-0.0_fix-very-silly-typo-in-printf-statement.patch',
1396+
'toy-0.0_fix-silly-typo-in-printf-statement.patch',
1397+
]
1398+
self.assertEqual(patches, expected_patches)
1399+
13901400
def test_toy_extension_sources(self):
13911401
"""Test install toy that includes extensions with 'sources' spec (as single-item list)."""
13921402
topdir = os.path.dirname(os.path.abspath(__file__))

0 commit comments

Comments
 (0)