From 1247d0f6f90e93ff55421abc68588056f39ee73e Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Wed, 28 Aug 2024 20:21:57 +0200 Subject: [PATCH] enhance test_exts_list to verify that template values used in extension name/version are resolved as expected --- test/framework/easyconfig.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/framework/easyconfig.py b/test/framework/easyconfig.py index 7dc088bff3..31bc821daa 100644 --- a/test/framework/easyconfig.py +++ b/test/framework/easyconfig.py @@ -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):