From a6cc1236b5353ee130cf2505b5e515cd30095ae9 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Thu, 6 Jun 2024 16:36:16 +0200 Subject: [PATCH] Fix test --- test/framework/easyconfig.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/framework/easyconfig.py b/test/framework/easyconfig.py index 4e920a9304..c557f12212 100644 --- a/test/framework/easyconfig.py +++ b/test/framework/easyconfig.py @@ -1911,8 +1911,9 @@ def test_alternative_easyconfig_parameters(self): self.assertEqual(ec['env_mod_class'], expected) expected = ['echo TOY > %(installdir)s/README'] - self.assertEqual(ec['postinstallcmds'], expected) - self.assertEqual(ec['post_install_cmds'], expected) + with ec.disable_templating(): + self.assertEqual(ec['postinstallcmds'], expected) + self.assertEqual(ec['post_install_cmds'], expected) # test setting of easyconfig parameter with original & alternative name ec['moduleclass'] = 'test1' @@ -3864,7 +3865,7 @@ def test_resolve_template(self): # On unknown values the value is returned unchanged for value in ('%(invalid)s', '%(name)s %(invalid)s', '%%%(invalid)s', '% %(invalid)s', '%s %(invalid)s'): - self.assertEqual(resolve_template(value, tmpl_dict), value) + self.assertEqual(resolve_template(value, tmpl_dict, expect_resolved=False), value) def test_det_subtoolchain_version(self): """Test det_subtoolchain_version function"""