Skip to content

Commit

Permalink
python: Added check for the number of used NED types when running fea…
Browse files Browse the repository at this point in the history
…ture tests.
  • Loading branch information
levy committed Mar 21, 2024
1 parent 61410b4 commit 4d6c4ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/inet/test/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ def get_folder_to_simulations(simulation_results):
def get_simulation_to_used_types(simulation_results):
result = {}
for simulation_result in simulation_results.results:
if len(simulation_result.used_types) == 0:
raise Exception("The number of used NED types in the simulation result is 0. Did you forget to recompile omnetpp with defining PRINT_MODULE_TYPES_USED macro?")
result[simulation_result.task] = simulation_result.used_types
return result

Expand Down

0 comments on commit 4d6c4ad

Please sign in to comment.