Skip to content

Commit 04af52f

Browse files
authored
Merge pull request #5004 from boegel/fix_from_pr_x
update `build_and_install_one` function to take into account that application log file may not exists
2 parents d234d88 + 322f00c commit 04af52f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

easybuild/framework/easyblock.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5269,6 +5269,11 @@ def ensure_writable_log_dir(log_dir):
52695269

52705270
del app
52715271

5272+
# take into account that log file may not exist,
5273+
# for example when we're operating in extended dry run mode (-x)
5274+
if not os.path.exists(application_log):
5275+
application_log = None
5276+
52725277
return (success, application_log, error_msg, exit_code)
52735278

52745279

0 commit comments

Comments
 (0)