Skip to content

link in test cases to load_compass_env.bash #490

Closed

Description

@xylar

@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.

Activity

  1. self-assigned this
    on Mar 25, 2020
  2. added
    For discussion
    on Mar 25, 2020
  3. changed the title [-]link in test cases to load_compass_env.sh[/-] [+]link in test cases to load_compass_env.bash[/+] on Mar 25, 2020
  4. xylar commented on Mar 25, 2020

    @xylar
    CollaboratorAuthor

    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)?
    • something else?
  5. xylar commented on Mar 25, 2020

    @xylar
    CollaboratorAuthor

    A few other things to discuss that are semi-related:

    • load_compass_env.bash should probably be renamed from bash to just sh since that's what we (and conda) do elsewhere.
    • we probably want this script in develop so landice and other components can use it, too.
  6. xylar commented on Mar 25, 2020

    @xylar
    CollaboratorAuthor
  7. sbrus89 commented on Mar 25, 2020

    @sbrus89

    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.

  8. xylar commented on Mar 25, 2020

    @xylar
    CollaboratorAuthor

    Sounds like a nice idea.

  9. added a commit that references this issue on Apr 10, 2020
    3d8d35c
  10. xylar commented on May 7, 2020

    @xylar
    CollaboratorAuthor

    Addressed in #492

  11. added a commit that references this issue on Jan 14, 2021
    208aac3
  12. added
    For discussion
    on Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

COMPASSFor discussionOceancoastal

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions