You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sbrus89 requested a way to link to load_compass_env.bash within a test case so this file can be sourced more easily to run the test case with the right environment.
We currently have the ability to create symlinks in COMPASS only at the level of steps within a test case, not in the main test case directory where the highest level run.py driver scrip is found. Thus, this would require changes to setup_testcase.py.
It's not clear to me how best to do this. Do we want to:
hard code a link to load_compass_env.bash each time a drive script is created?
modify all XML files for driver scripts to add a link (after modifying setup_testcase.py to support symlinks at the driver-script level)?
My initial thought would be to hard code the link (first option), but add a CL argument to setup_testcase.py so that everything behaves normally (i.e. no link) unless it is specified.
Reacted by Xylar Asay-Davis and Phillip J. Wolfram
Activity
[-]link in test cases to load_compass_env.sh[/-][+]link in test cases to load_compass_env.bash[/+]xylar commentedon Mar 25, 2020
We currently have the ability to create symlinks in COMPASS only at the level of steps within a test case, not in the main test case directory where the highest level
run.pydriver scrip is found. Thus, this would require changes tosetup_testcase.py.It's not clear to me how best to do this. Do we want to:
load_compass_env.basheach time a drive script is created?setup_testcase.pyto support symlinks at the driver-script level)?xylar commentedon Mar 25, 2020
A few other things to discuss that are semi-related:
load_compass_env.bashshould probably be renamed frombashto justshsince that's what we (and conda) do elsewhere.developsolandiceand other components can use it, too.xylar commentedon Mar 25, 2020
cc @sbrus89, @mark-petersen and @pwolfram
sbrus89 commentedon Mar 25, 2020
My initial thought would be to hard code the link (first option), but add a CL argument to setup_testcase.py so that everything behaves normally (i.e. no link) unless it is specified.
xylar commentedon Mar 25, 2020
Sounds like a nice idea.
Merge PR #492 'xylar/add_load_compass_env_to_test_cases' into ocean/d…
xylar commentedon May 7, 2020
Addressed in #492
Merge PR MPAS-Dev#492 'xylar/add_load_compass_env_to_test_cases' into…