Skip to content

Commit

Permalink
improvements to syntax #222
Browse files Browse the repository at this point in the history
  • Loading branch information
Avery Kiihne authored and Avery Kiihne committed Oct 31, 2024
1 parent 2fb2724 commit 2c0846f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fre/make/tests/null_example/test_checkout_null_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@
#set platform and target
platform = "ncrc5.intel"
target = "debug"
yamlfile = "null_model.yaml"

#set output directory
out_dir = Path(f"{os.getenv('HOME')}/configure_yaml_out/fremake_canopy/test/null_model_full/src")
out_dir = Path(f"{os.getenv('HOME')}/fre_make_out")
Path(out_dir).mkdir(parents=True,exist_ok=True)

# Set home for ~/cylc-src location in script
Expand All @@ -31,7 +30,7 @@ def test_checkout_script_exists():
"""
Make sure checkout file exists
"""
result = runner.invoke(fre.fre, args=["make","create-checkout","-y","{yamlfile}","-p","ncrc5.intel","-t","debug"])
result = runner.invoke(fre.fre, args=["make","create-checkout","-y",yamlfile,"-p",platform,"-t",target])
#createCheckout.checkout_create(["null_model.yaml","ncrc5.intel","debug"])
assert Path(f"{out_dir}/checkout.sh").exists()

Expand All @@ -40,6 +39,6 @@ def test_checkout_execute():
check if --execute option works
"""
subprocess.run(["rm","-rf",f"{out_dir}"])
result = runner.invoke(fre.fre, args=["make","create-checkout","-y","{yamlfile}","-p","ncrc5.intel","-t","debug","--execute"])
result = runner.invoke(fre.fre, args=["make","create-checkout","-y",yamlfile,"-p",platform,"-t",target,"--execute"])
assert (result.exit_code == 0)

0 comments on commit 2c0846f

Please sign in to comment.