Skip to content

Add tests isolation in test_rclcpp (backport #583)#589

Open
mergify[bot] wants to merge 1 commit intokiltedfrom
mergify/bp/kilted/pr-583
Open

Add tests isolation in test_rclcpp (backport #583)#589
mergify[bot] wants to merge 1 commit intokiltedfrom
mergify/bp/kilted/pr-583

Conversation

@mergify
Copy link
Copy Markdown

@mergify mergify bot commented Apr 13, 2026

Description

As discussed in ros2/rmw_zenoh#881 (comment), this PR adds tests isolation to all tests initializing a Context or a Node, in order to start a Zenoh router in case of rmw_zenoh_cpp.

More specifically:

  • in test_rclcpp/CMakeLists.txt:
    calls to ament_add_gtest_test are replaced with call to ament_add_ros_isolated_gtest_test
  • in test_rclcpp/test/test_executable_output.py.in and test_rclcpp/test/test_sigterm.py.in which are using LaunchDescription:
    a EnableRmwIsolation() is added, and the the way to update the env for output format is changed to not override that environment change made by EnableRmwIsolation()

Is this user-facing behavior change?

No

Did you use Generative AI?

No


This is an automatic backport of pull request #583 done by Mergify.

* test_rclcpp: add test isolation

Signed-off-by: Julien Enoch <julien.e@zettascale.tech>

* test_rclcpp: add test isolation in test_sigterm.py.in and test_executable_output.py.in which are using a LaunchDescription

Signed-off-by: Julien Enoch <julien.e@zettascale.tech>

---------

Signed-off-by: Julien Enoch <julien.e@zettascale.tech>
(cherry picked from commit 3d0fde9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant