Skip to content

Commit 86b5bb3

Browse files
committed
fix test_toy_build_hooks
1 parent 0f34abe commit 86b5bb3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/framework/toy_build.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3662,7 +3662,8 @@ def parse_hook(ec):
36623662
print(ec['postinstallcmds'][-1])
36633663
36643664
def pre_build_and_install_loop_hook(ecs):
3665-
print(f"installing {len(ecs)} easyconfigs: {' '.join(ec[1]['full_mod_name'] for ec in ecs)}")
3665+
mod_names = ' '.join(ec['full_mod_name'] for ec in ecs)
3666+
print(f"installing {len(ecs)} easyconfigs: {mod_names}")
36663667
36673668
def pre_easyblock_hook(self):
36683669
print(f'starting installation of {self.name} {self.version}')
@@ -3715,7 +3716,8 @@ def post_easyblock_hook(self):
37153716
print(f'done with installation of {self.name} {self.version}')
37163717
37173718
def post_build_and_install_loop_hook(ecs):
3718-
print(f"done with installing {len(ecs)} easyconfigs: {' '.join(ec[1]['full_mod_name'] for ec in ecs)}")
3719+
mod_names = ' '.join(ec[0]['full_mod_name'] for ec in ecs)
3720+
print(f"done with installing {len(ecs)} easyconfigs: {mod_names}")
37193721
""")
37203722
write_file(hooks_file, hooks_file_txt)
37213723

0 commit comments

Comments
 (0)