-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a warning to ros2 node info when there is more than one node with the same name #463
Add a warning to ros2 node info when there is more than one node with the same name #463
Conversation
@chapulina ping for routing to the correct reviewers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but for a few minor nits. It'd be nice to have a test for it though :)
@hidmic I've added a test to expect this warning line output in a launch scenario with this node. I was thinking of adding an inverse test, "this line is not present when running against a normal node" - but I couldn't think of how to do that "expectation of absence" - any ideas? Also, maybe it's not necessary because the existing tests handle the regular-case scenario. What do you think? |
@hidmic can you review this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending green CI ! Apologies for the rather long round-trip.
On testing for absence, considering it's a single text line you want to check for, simply negating expect_output(..., strict=False)
outcome will do the trick.
@ros2/aws-oncall - please run this CI job |
… the given name Signed-off-by: Emerson Knapp <[email protected]>
Signed-off-by: Emerson Knapp <[email protected]>
0e4149c
to
7b6f22c
Compare
Signed-off-by: Emerson Knapp <[email protected]>
I've just learned that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one nitpick, otherwise lgtm
Co-Authored-By: William Woodall <[email protected]> Signed-off-by: Emerson Knapp <[email protected]>
86f3cf7
to
bba11c4
Compare
Alright, looking good! Thanks for your contribution @emersonknapp, merging. |
Second half of #453
Second half of https://github.com/ros-tooling/aws-roadmap/issues/196
Add a simple warning for
ros2 node info
when there is more than one node with the same name. This does not change functionality at all, just informs users of a potentially confusing situation.Signed-off-by: Emerson Knapp [email protected]