Skip to content
Merged
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
6 changes: 5 additions & 1 deletion easybuild/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import sys
import tempfile
import traceback
from datetime import datetime

# IMPORTANT this has to be the first easybuild import as it customises the logging
# expect missing log output when this not the case!
Expand Down Expand Up @@ -84,6 +85,7 @@
from easybuild.tools.repository.repository import init_repository
from easybuild.tools.systemtools import check_easybuild_deps
from easybuild.tools.testing import create_test_report, overall_test_report, regtest, session_state
from easybuild.tools.utilities import time2str
from easybuild.tools.version import EASYBLOCKS_VERSION, FRAMEWORK_VERSION, UNKNOWN_EASYBLOCKS_VERSION
from easybuild.tools.version import different_major_versions

Expand Down Expand Up @@ -585,6 +587,7 @@ def process_eb_args(eb_args, eb_go, cfg_settings, modtool, testing, init_session
return True

# build software, will exit when errors occurs (except when testing)
start_time = datetime.now()
if not testing or (testing and do_build):
exit_on_failure = not (options.dump_test_report or options.upload_test_report)

Expand All @@ -601,7 +604,8 @@ def process_eb_args(eb_args, eb_go, cfg_settings, modtool, testing, init_session
success_msg = "Build succeeded "
if build_option('ignore_test_failure'):
success_msg += "(with --ignore-test-failure) "
success_msg += "for %s out of %s" % (correct_builds_cnt, len(ordered_ecs))
success_msg += f"for {correct_builds_cnt} out of {len(ordered_ecs)} "
success_msg += f"(total: {time2str(datetime.now() - start_time)})"

repo = init_repository(get_repository(), get_repositorypath())
repo.cleanup()
Expand Down