Skip to content

Commit

Permalink
enhance test_exts_list to verify that template values used in extensi…
Browse files Browse the repository at this point in the history
…on name/version are resolved as expected
  • Loading branch information
boegel committed Aug 28, 2024
1 parent 57cc313 commit 1247d0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/framework/easyconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,8 @@ def test_exts_list(self):
with self.mocked_stdout_stderr():
modfile = os.path.join(eb.make_module_step(), 'PI', '3.14' + eb.module_generator.MODULE_FILE_EXTENSION)
modtxt = read_file(modfile)
regex = re.compile('EBEXTSLISTPI.*ext1-1.0,ext2-2.0')
# verify that templates used for extensions are resolved as they should
regex = re.compile('EBEXTSLISTPI.*, "ext1-1.0,ext2-2.0,ext-PI-3.14,ext-pi-3.0')
self.assertTrue(regex.search(modtxt), "Pattern '%s' found in: %s" % (regex.pattern, modtxt))

def test_extensions_templates(self):
Expand Down

0 comments on commit 1247d0f

Please sign in to comment.