Skip to content

Commit

Permalink
Fix reference folder
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Feb 22, 2022
1 parent 601ae1b commit 911f008
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/antares_test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,12 @@ def generate_reference_values(solver_path, path, use_ortools, ortools_solver):
result = launch_solver(solver_path,path, use_ortools, ortools_solver)

output_path = path / 'output'
result_dir = find_output_result_dir(output_path)
list_dir = list_directories(output_path)
assert len(list_dir) == 1

reference_path = path / 'output' / 'reference' / result_dir.name
result_dir = list_dir[0]

reference_path = path / 'output' / 'reference'
shutil.move(result_dir, reference_path)
return result

Expand Down

0 comments on commit 911f008

Please sign in to comment.