Skip to content

Commit

Permalink
python: Replaced build_project with running make directly to build th…
Browse files Browse the repository at this point in the history
…e routing sample.
  • Loading branch information
levy committed Nov 18, 2024
1 parent 2940e97 commit 54956c1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions python/inet/test/speed/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ def get_baseline_elapsed_wall_time():
else:
logging.getLogger("routing").setLevel("WARN")
with open(os.devnull, 'w') as devnull:
# 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)
run_command_with_logging(["make", "MODE=release", "-j16", "samples"], cwd=get_workspace_path("omnetpp"), error_message="Failed to build routing sample")
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
return _baseline_elapsed_wall_time

Expand Down

0 comments on commit 54956c1

Please sign in to comment.