Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions easybuild/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
from easybuild.tools.github import add_pr_labels, install_github_token, list_prs, merge_pr, new_branch_github, new_pr
from easybuild.tools.github import new_pr_from_branch
from easybuild.tools.github import sync_branch_with_develop, sync_pr_with_develop, update_branch, update_pr
from easybuild.tools.hooks import BUILD_AND_INSTALL_LOOP, PRE_PREF, POST_PREF, CRASH, START, END, CANCEL, FAIL
from easybuild.tools.hooks import BUILD_AND_INSTALL_LOOP, PRE_PREF, POST_PREF, START, END, CANCEL, FAIL
from easybuild.tools.hooks import load_hooks, run_hook
from easybuild.tools.modules import modules_tool
from easybuild.tools.options import opts_dict_to_eb_opts, set_up_configuration, use_color
Expand Down Expand Up @@ -760,6 +760,3 @@ def prepare_main(args=None, logfile=None, testing=None):
except KeyboardInterrupt as err:
run_hook(CANCEL, hooks, args=[err])
print_error("Cancelled by user: %s" % err)
except Exception as err:
run_hook(CRASH, hooks, args=[err])
print_error("Encountered an unrecoverable error: %s" % err)
2 changes: 0 additions & 2 deletions easybuild/tools/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
END = 'end'

CANCEL = 'cancel'
CRASH = 'crash'
FAIL = 'fail'

PRE_PREF = 'pre_'
Expand Down Expand Up @@ -106,7 +105,6 @@
POST_PREF + BUILD_AND_INSTALL_LOOP,
END,
CANCEL,
CRASH,
FAIL,
]
KNOWN_HOOKS = [h + HOOK_SUFF for h in HOOK_NAMES]
Expand Down
1 change: 0 additions & 1 deletion test/framework/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,6 @@ def test_avail_hooks(self):
" post_build_and_install_loop_hook",
" end_hook",
" cancel_hook",
" crash_hook",
" fail_hook",
'',
])
Expand Down