Skip to content

Improve robustness to whitespace in gz_TEST#180

Merged
scpeters merged 1 commit intogz-plugin3from
scpeters/backport_test_whitespace_fix
May 27, 2025
Merged

Improve robustness to whitespace in gz_TEST#180
scpeters merged 1 commit intogz-plugin3from
scpeters/backport_test_whitespace_fix

Conversation

@scpeters
Copy link
Copy Markdown
Member

🦟 Bug fix

Fixes #179

Summary

The amount of indentation in gz plugin --help can vary, so add a helper function that looks for two substrings separated only by spaces and use it instead of hard-coding the expected amount of whitespace.

Backported from 27be1bc in #175.

cc @traversaro

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

The amount of indentation in `gz plugin --help` can vary,
so add a helper function that looks for two substrings
separated only by spaces and use it instead of hard-coding
the expected amount of whitespace.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
@github-project-automation github-project-automation bot moved this from Inbox to In review in Core development May 26, 2025
@scpeters scpeters merged commit c3cbe4a into gz-plugin3 May 27, 2025
15 checks passed
@scpeters scpeters deleted the scpeters/backport_test_whitespace_fix branch May 27, 2025 08:06
@github-project-automation github-project-automation bot moved this from In review to Done in Core development May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏛️ ionic Gazebo Ionic

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

UNIT_gz_TEST fail with cli11 >=2.5.0

3 participants