Skip to content

Commit ced2118

Browse files
committed
Revert "Normalize paths in testing python scripts"
This reverts commit c8ef390.
1 parent c8ef390 commit ced2118

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/tests_cmake.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ jobs:
7878

7979
- name: Run ${{ matrix.projects.name }} project
8080
run: |
81-
python ${{ github.workspace }}/beta/test_run_sample.py ${{ matrix.projects.binary }} ${{ matrix.projects.config }} ${{ matrix.projects.max_time }}
81+
python ${{ github.workspace }}/beta/test_run_sample.py ${{ matrix.projects.binary }} ${{ github.workspace }}/${{ matrix.projects.cwd }}/${{ matrix.projects.config }} ${{ matrix.projects.max_time }}
8282
working-directory: ${{ matrix.projects.cwd }}
8383

8484
- name: Check ${{ matrix.projects.name }} project simulation results
8585
if: matrix.projects.validation_output_folder != ''
8686
run: |
87-
python ${{ github.workspace }}/beta/test_diff_svg.py output tests/cases/${{ matrix.projects.validation_output_folder }}
87+
python ${{ github.workspace }}/beta/test_diff_svg.py output ${{ github.workspace }}/tests/cases/${{ matrix.projects.validation_output_folder }}
8888
working-directory: ${{ matrix.projects.cwd }}
8989

beta/test_diff_svg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
print("e.g.: python test_diff_svg.py ~/blah1 ~/blah2")
1212
exit(1)
1313
else:
14-
dir1 = os.path.normpath(sys.argv[1])
15-
dir2 = os.path.normpath(sys.argv[2])
14+
dir1 = sys.argv[1]
15+
dir2 = sys.argv[2]
1616

1717
svg_files = glob.glob(f'{dir1}/snap*.svg')
1818
svg_files.sort()

beta/test_run_sample.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ def disable_automated_spring_adhesions(root):
3232
def run_sample(myexec, xml_file, max_time):
3333

3434
print("\n\n------------ ",myexec, " ----------------------------------")
35-
# Normalize path to work cross-platform
36-
xml_file = os.path.normpath(xml_file)
3735
# update max_time and omp_num_threads (=1)
3836
tree = ET.parse(xml_file)
3937
root = tree.getroot()

0 commit comments

Comments
 (0)