Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Dec 18, 2024
1 parent 9fe0b35 commit e9ce14b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/framework/easyconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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"""
Expand Down

0 comments on commit e9ce14b

Please sign in to comment.