From 9fd2b836ae9df5a5bff3f1bc926b115818b297fd Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Tue, 10 Dec 2019 15:46:15 +0100 Subject: [PATCH] Use correct module for errors_found_in_log --- easybuild/framework/easyblock.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/easybuild/framework/easyblock.py b/easybuild/framework/easyblock.py index 2dcc98c70b..e79f0b7a36 100644 --- a/easybuild/framework/easyblock.py +++ b/easybuild/framework/easyblock.py @@ -62,7 +62,7 @@ from easybuild.framework.easyconfig.style import MAX_LINE_LENGTH from easybuild.framework.easyconfig.tools import get_paths_for from easybuild.framework.easyconfig.templates import TEMPLATE_NAMES_EASYBLOCK_RUN_STEP, template_constant_dict -from easybuild.tools import config, filetools +from easybuild.tools import config, filetools, run from easybuild.tools.build_details import get_build_stats from easybuild.tools.build_log import EasyBuildError, dry_run_msg, dry_run_warning, dry_run_set_dirs from easybuild.tools.build_log import print_error, print_msg, print_warning @@ -3195,9 +3195,9 @@ def build_and_install_one(ecdict, init_env): print_msg("%s: Installation %s %s (took %s)" % (summary, ended, succ, req_time), log=_log, silent=silent) # check for errors - if filetools.errors_found_in_log > 0: + if run.errors_found_in_log > 0: print_msg("WARNING: %d possible error(s) were detected in the " - "build logs, please verify the build." % filetools.errors_found_in_log, + "build logs, please verify the build." % run.errors_found_in_log, _log, silent=silent) if app.postmsg: