Skip to content

Commit

Permalink
took out shell wrapper that was exporting env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryMcGuinness-NOAA committed Jun 25, 2024
1 parent dd5e58c commit 01bc144
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions ci/scripts/tests/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,7 @@ def test_setup_expt():

def test_setup_xml():

script_content = '''#!/usr/bin/env bash
# TODO - reintroduce this when wxflow update
# for user space variable clashing is addressed
#export ACCOUNT=fv3-cpu
#export HOMEgfs=foobar
../../../workflow/setup_xml.py "${1}"
'''
with open('run_setup_xml.sh', 'w') as file:
file.write(script_content)
os.chmod('run_setup_xml.sh', 0o755)

setup_xml_script = Executable(os.path.join(HOMEgfs, "ci", "scripts", "tests", "run_setup_xml.sh"))
setup_xml_script = Executable(os.path.join(HOMEgfs, "workflow", "setup_xml.py"))
setup_xml_script.add_default_arg(f"{RUNDIR}/{pslot}")
setup_xml_script()
assert (setup_xml_script.returncode == 0)
Expand Down

0 comments on commit 01bc144

Please sign in to comment.