|
62 | 62 | from easybuild.framework.easyconfig.tools import get_paths_for |
63 | 63 | from easybuild.framework.easyconfig.templates import TEMPLATE_NAMES_EASYBLOCK_RUN_STEP, template_constant_dict |
64 | 64 | from easybuild.framework.extension import resolve_exts_filter_template |
65 | | -from easybuild.tools import config, filetools |
| 65 | +from easybuild.tools import config, run |
66 | 66 | from easybuild.tools.build_details import get_build_stats |
67 | 67 | from easybuild.tools.build_log import EasyBuildError, dry_run_msg, dry_run_warning, dry_run_set_dirs |
68 | 68 | from easybuild.tools.build_log import print_error, print_msg, print_warning |
@@ -3088,7 +3088,7 @@ def build_and_install_one(ecdict, init_env): |
3088 | 3088 |
|
3089 | 3089 | # restore original environment, and then sanitize it |
3090 | 3090 | _log.info("Resetting environment") |
3091 | | - filetools.errors_found_in_log = 0 |
| 3091 | + run.errors_found_in_log = 0 |
3092 | 3092 | restore_env(init_env) |
3093 | 3093 | sanitize_env() |
3094 | 3094 |
|
@@ -3239,10 +3239,9 @@ def build_and_install_one(ecdict, init_env): |
3239 | 3239 | print_msg("%s: Installation %s %s (took %s)" % (summary, ended, succ, req_time), log=_log, silent=silent) |
3240 | 3240 |
|
3241 | 3241 | # check for errors |
3242 | | - if filetools.errors_found_in_log > 0: |
3243 | | - print_msg("WARNING: %d possible error(s) were detected in the " |
3244 | | - "build logs, please verify the build." % filetools.errors_found_in_log, |
3245 | | - _log, silent=silent) |
| 3242 | + if run.errors_found_in_log > 0: |
| 3243 | + _log.warning("%d possible error(s) were detected in the " |
| 3244 | + "build logs, please verify the build.", run.errors_found_in_log) |
3246 | 3245 |
|
3247 | 3246 | if app.postmsg: |
3248 | 3247 | print_msg("\nWARNING: %s\n" % app.postmsg, log=_log, silent=silent) |
|
0 commit comments