Skip to content

Commit

Permalink
Test path change for github action tests
Browse files Browse the repository at this point in the history
  • Loading branch information
singhd789 authored Aug 23, 2024
1 parent 9fac7ee commit a656915
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fre/yamltools/tests/test_combine_yamls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

## SET-UP
# Set example yaml paths, input directory, output directory
CWD = os.getcwd()
#CWD = os.getcwd()
test_dir = Path("fre/yamltools/tests")
in_dir = Path(f"{CWD}/{test_dir}/AM5_example")
in_dir = Path(f"{test_dir}/AM5_example")

# Create output directory
out_dir = Path(f"{CWD}/{test_dir}/combine_yamls_out")
out_dir = Path(f"{test_dir}/combine_yamls_out")

# If output directory exists, remove and create again
if Path(out_dir).exists:
Expand Down Expand Up @@ -68,7 +68,7 @@ def test_merged_yamls():
cy._consolidate_yamls(modelyaml,EXPERIMENT, PLATFORM, TARGET)

# Move combined yaml to output location
shutil.move(f"{CWD}/combined-{EXPERIMENT}.yaml", out_dir)
shutil.move(f"combined-{EXPERIMENT}.yaml", out_dir)

# Check that the combined yaml exists
assert Path(f"{out_dir}/combined-{EXPERIMENT}.yaml").exists()
Expand Down

0 comments on commit a656915

Please sign in to comment.