Skip to content

Commit

Permalink
Fix build_environment.txt file.
Browse files Browse the repository at this point in the history
Instead of copying software_environment.txt, just generate the
build_environment file from scratch at build time. This will ensure
env changes made after case.setup are reflected accurately.

[BFB]
  • Loading branch information
jgfouca committed Aug 17, 2017
1 parent a3581ed commit 4713c17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/lib/CIME/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def _save_build_provenance_acme(case, lid):
env_prov = os.path.join(exeroot, "build_environment.%s.txt" % lid)
if os.path.exists(env_prov):
os.remove(env_prov)
copy_umask(os.path.join(caseroot, "software_environment.txt"), env_prov)
env_module = case.get_env("mach_specific")
env_module.save_all_env_info(env_prov)

# For all the just-created post-build provenance files, symlink a generic name
# to them to indicate that these are the most recent or active.
Expand Down

0 comments on commit 4713c17

Please sign in to comment.