Skip to content

Commit

Permalink
Send the output of make commands to log files
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed Apr 8, 2022
1 parent be2373d commit e65df80
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bisect/bisect_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,16 @@ def run(launch_path, mpas_path, work_base, load_script, make_command,

work_path = os.path.join(work_base, f'e3sm_hash{git_hash}')

try:
os.makedirs(work_path)
except FileExistsError:
pass

os.chdir(mpas_path)
commands = f'source {load_script}; ' \
f'git submodule update --init --recursive; ' \
f'make clean; ' \
f'{make_command}; ' \
f'make clean >& {work_path}/clean.log; ' \
f'{make_command} >& {work_path}/make.log; ' \
f'{setup_command} -p {mpas_path} -w {work_path}; ' \
f'cd {work_path}; ' \
f'{run_command}'
Expand Down

0 comments on commit e65df80

Please sign in to comment.