Skip to content

Commit

Permalink
Make test_communication use idl messages instead of msg ones.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <[email protected]>
  • Loading branch information
MiguelCompany committed Apr 3, 2024
1 parent e908363 commit 486acce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test_communication/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ if(BUILD_TESTING)
foreach(interface_file ${interface_files})
get_filename_component(interface_ns "${interface_file}" DIRECTORY)
get_filename_component(interface_ns "${interface_ns}" NAME)
string_ends_with("${interface_file}" ".msg" is_message)
if(is_message AND interface_ns STREQUAL "msg")
string_ends_with("${interface_file}" ".idl" is_idl)
if(is_idl AND interface_ns STREQUAL "msg")
list(APPEND message_files "${interface_file}")
continue()
endif()
Expand All @@ -51,8 +51,7 @@ if(BUILD_TESTING)
list(APPEND service_files "${interface_file}")
continue()
endif()
string_ends_with("${interface_file}" ".idl" is_action)
if(is_action AND interface_ns STREQUAL "action")
if(is_idl AND interface_ns STREQUAL "action")
list(APPEND action_files "${interface_file}")
continue()
endif()
Expand Down

0 comments on commit 486acce

Please sign in to comment.