From a656915db7d5ecb3bb47dcfc9366e46120e85dc2 Mon Sep 17 00:00:00 2001 From: Dana Singh <115384427+singhd789@users.noreply.github.com> Date: Fri, 23 Aug 2024 12:58:53 -0400 Subject: [PATCH] Test path change for github action tests --- fre/yamltools/tests/test_combine_yamls.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fre/yamltools/tests/test_combine_yamls.py b/fre/yamltools/tests/test_combine_yamls.py index 19a25631..948f5df6 100644 --- a/fre/yamltools/tests/test_combine_yamls.py +++ b/fre/yamltools/tests/test_combine_yamls.py @@ -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: @@ -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()