Skip to content

Commit ac9ddea

Browse files
committed
enhance test_exts_list to verify that template values used in extension name/version are resolved as expected
1 parent 57cc313 commit ac9ddea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/framework/easyconfig.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,8 @@ def test_exts_list(self):
522522
with self.mocked_stdout_stderr():
523523
modfile = os.path.join(eb.make_module_step(), 'PI', '3.14' + eb.module_generator.MODULE_FILE_EXTENSION)
524524
modtxt = read_file(modfile)
525-
regex = re.compile('EBEXTSLISTPI.*ext1-1.0,ext2-2.0')
525+
# verify that templates used for extensions are resolved as they should
526+
regex = re.compile('EBEXTSLISTPI.*"ext1-1.0,ext2-2.0,ext-PI-3.14,ext-pi-3.0')
526527
self.assertTrue(regex.search(modtxt), "Pattern '%s' found in: %s" % (regex.pattern, modtxt))
527528

528529
def test_extensions_templates(self):

0 commit comments

Comments
 (0)