Skip to content

Commit

Permalink
python: Fixed building the omnetpp routing sample before getting the …
Browse files Browse the repository at this point in the history
…baseline elapsed wall time.
  • Loading branch information
levy committed Nov 18, 2024
1 parent c7fd7b9 commit 0ddb4b3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/inet/test/speed/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ def get_baseline_elapsed_wall_time():
else:
logging.getLogger("routing").setLevel("WARN")
with open(os.devnull, 'w') as devnull:
simulation_task_result = run_simulations(simulation_project=get_simulation_project("routing"), config_filter="Net60a", sim_time_limit="10000s", output_stream=devnull)
_baseline_elapsed_wall_time = simulation_task_result.elapsed_wall_time
# TODO building the project should be part of collecting the simulation configs
simulation_project = get_simulation_project("routing")
build_project(simulation_project=simulation_project)
simulation_task_result = run_simulations(simulation_project=simulation_project, config_filter="Net60a", sim_time_limit="10000s", output_stream=devnull)
_baseline_elapsed_wall_time = simulation_task_result.elapsed_wall_time
return _baseline_elapsed_wall_time

class SpeedTestTask(SimulationTestTask):
Expand Down

0 comments on commit 0ddb4b3

Please sign in to comment.