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 |
|
@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? |
hidmic
left a comment
There was a problem hiding this comment.
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 <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
0e4149c to
7b6f22c
Compare
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
|
I've just learned that |
Co-Authored-By: William Woodall <william@osrfoundation.org> Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
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 infowhen 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 emerson.b.knapp@gmail.com