Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
vadere
vadere
Commits
2820ebf3
Commit
2820ebf3
authored
Jul 12, 2019
by
Daniel Lehmberg
Browse files
change optimization tests to long timeout, because the brute force comparison is expensive
parent
4db3c6d8
Pipeline
#132620
failed with stages
in 85 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Tools/ContinuousIntegration/run_vadere_console_with_all_scenario_files.py
View file @
2820ebf3
...
...
@@ -74,8 +74,9 @@ def run_all_optimization_tests():
config_filepath
=
os
.
path
.
join
(
"VadereOptimizationTests"
,
"TestNelderMead"
,
"vadere.conf"
)
# NOTE: it is likely that the set config file is not required by new optimization tests
# long_timeout, because the brute force is expensive.
passed_and_failed_scenarios
=
run_scenario_files_with_vadere_console
(
scenario_files
,
scenario_timeout_in_sec
=
short
_timeout_in_seconds
,
config_filepath
=
config_filepath
)
scenario_files
,
scenario_timeout_in_sec
=
long
_timeout_in_seconds
,
config_filepath
=
config_filepath
)
return
passed_and_failed_scenarios
...
...
@@ -215,13 +216,13 @@ def result_dict_print_summary(passed_and_failed_scenarios):
total_passed_scenarios
=
len
(
passed_and_failed_scenarios
[
"passed"
])
total_failed_scenarios
=
len
(
passed_and_failed_scenarios
[
"failed"
])
total_scenarios
=
total_passed_scenarios
+
total_failed_scenarios
faild_summary
=
passed_and_failed_scenarios
[
"failed_summary"
]
fail
e
d_summary
=
passed_and_failed_scenarios
[
"failed_summary"
]
if
len
(
faild_s
ummary
)
>
0
:
if
result_dict_has_failed_tests
(
passed_and_
fail
e
d_s
cenarios
)
:
print
(
"##################"
)
print
(
"# Failed Summary #"
)
print
(
"##################"
)
for
line
in
faild_summary
:
for
line
in
fail
e
d_summary
:
print
(
line
)
print
(
"###########"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment