|
62 | 62 | from easybuild.framework.easyconfig.style import MAX_LINE_LENGTH |
63 | 63 | from easybuild.framework.easyconfig.tools import get_paths_for |
64 | 64 | from easybuild.framework.easyconfig.templates import TEMPLATE_NAMES_EASYBLOCK_RUN_STEP, template_constant_dict |
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 |
@@ -3044,7 +3044,7 @@ def build_and_install_one(ecdict, init_env): |
3044 | 3044 |
|
3045 | 3045 | # restore original environment, and then sanitize it |
3046 | 3046 | _log.info("Resetting environment") |
3047 | | - filetools.errors_found_in_log = 0 |
| 3047 | + run.errors_found_in_log = 0 |
3048 | 3048 | restore_env(init_env) |
3049 | 3049 | sanitize_env() |
3050 | 3050 |
|
@@ -3195,9 +3195,9 @@ def build_and_install_one(ecdict, init_env): |
3195 | 3195 | print_msg("%s: Installation %s %s (took %s)" % (summary, ended, succ, req_time), log=_log, silent=silent) |
3196 | 3196 |
|
3197 | 3197 | # check for errors |
3198 | | - if filetools.errors_found_in_log > 0: |
| 3198 | + if run.errors_found_in_log > 0: |
3199 | 3199 | print_msg("WARNING: %d possible error(s) were detected in the " |
3200 | | - "build logs, please verify the build." % filetools.errors_found_in_log, |
| 3200 | + "build logs, please verify the build." % run.errors_found_in_log, |
3201 | 3201 | _log, silent=silent) |
3202 | 3202 |
|
3203 | 3203 | if app.postmsg: |
|
0 commit comments