Skip to content

Fix pluginlib_enable_plugin_testing() docstring pitfalls. (backport #305) - #306

Open
ahcorde wants to merge 1 commit into
lyricalfrom
ahcorde/lyrical/bp_305
Open

Fix pluginlib_enable_plugin_testing() docstring pitfalls. (backport #305) #306
ahcorde wants to merge 1 commit into
lyricalfrom
ahcorde/lyrical/bp_305

Conversation

@ahcorde

@ahcorde ahcorde commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

The usage example wrapped the APPEND_ENV value in double quotes. CMake passes those quotes through as literal characters in the environment variable value, so tests copying the example end up with a mock install path that is never found at test time. Fix the example and call the pitfall out explicitly.

Also document that keeping the default PACKAGE_NAME shadows the real package when it is installed in a prefix which comes earlier in AMENT_PREFIX_PATH (as is the case when a package's own tests run against its install space), in which case pluginlib fails to find the plugin library in the mock install.

The usage example wrapped the APPEND_ENV value in double quotes.  CMake
passes those quotes through as literal characters in the environment
variable value, so tests copying the example end up with a mock install
path that is never found at test time.  Fix the example and call the
pitfall out explicitly.

Also document that keeping the default PACKAGE_NAME shadows the real
package when it is installed in a prefix which comes earlier in
AMENT_PREFIX_PATH (as is the case when a package's own tests run
against its install space), in which case pluginlib fails to find the
plugin library in the mock install.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
@ahcorde ahcorde self-assigned this Aug 21, 2026
@ahcorde

ahcorde commented Aug 21, 2026

Copy link
Copy Markdown
Contributor Author

Pulls: #306
Gist: https://gist.githubusercontent.com/ahcorde/056193b8081aafd266b2d9339cfd92f8/raw/d57cba1580d81db0186b11f5003f3d6d49aaeff4/ros2.repos
BUILD args: --packages-above-and-dependencies pluginlib
TEST args: --packages-above pluginlib
ROS Distro: lyrical
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/20151

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

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.

2 participants