Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Nov 8, 2024
1 parent 455622d commit a6cc123
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 @@ -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"""
Expand Down

0 comments on commit a6cc123

Please sign in to comment.