From e9ce14b1907703672325d4c3772fcf7d581c83b0 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 1e630a5627..d5cb550b0c 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' @@ -3865,7 +3866,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"""