Skip to content

Commit

Permalink
Update LearningTest scripts
Browse files Browse the repository at this point in the history
New scripts now capture fatal errors and are more resilient to warning from json and kdic files.
  • Loading branch information
marcboulle authored and folmos-at-orange committed Jan 9, 2024
1 parent ddd3b4b commit 451e1a4
Show file tree
Hide file tree
Showing 9 changed files with 456 additions and 415 deletions.
4 changes: 2 additions & 2 deletions test/LearningTest/cmd/python/apply_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def apply_command_performance(work_dir):
dir_name = os.path.basename(work_dir)
root_name = os.path.basename(os.path.dirname(work_dir))
results_dir = os.path.join(work_dir, "results")
if os.path.isdir((results_dir)):
if os.path.isdir(results_dir):
test_pattern = "TestEvaluationReport.xls"
for file_name in os.listdir(results_dir):
if test_pattern in file_name:
Expand All @@ -389,7 +389,7 @@ def apply_command_performance_ref(work_dir):
dir_name = os.path.basename(work_dir)
root_name = os.path.basename(os.path.dirname(work_dir))
results_dir = os.path.join(work_dir, "results.ref")
if os.path.isdir((results_dir)):
if os.path.isdir(results_dir):
test_pattern = "TestEvaluationReport.xls"
for file_name in os.listdir(results_dir):
if test_pattern in file_name:
Expand Down
1 change: 0 additions & 1 deletion test/LearningTest/cmd/python/apply_command_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import apply_command
import test_khiops


if __name__ == "__main__":
all_commands, standard_command_number = apply_command.register_all_commands()

Expand Down
Loading

0 comments on commit 451e1a4

Please sign in to comment.