Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 committed Apr 11, 2024
1 parent 845f746 commit 870817e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/roslaunch/test/unit/test_roslaunch_rlutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,8 @@ def test_check_roslaunch(self):
filename = os.path.join(get_test_path(), 'test', 'xml', 'test-ignore-unset-args.launch')
error_msg = roslaunch.rlutil.check_roslaunch(filename, ignore_unset_args=True)
assert error_msg is None

def test_check_roslaunch_arg_in_arg(self):
filename = os.path.join(get_test_path(), 'test', 'xml', 'test-ignore-unset-args-arg-in-arg.launch')
error_msg = roslaunch.rlutil.check_roslaunch(filename, ignore_unset_args=True)
assert error_msg is None
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<launch>
<arg name="foo1" /> <!-- no `default="something" here! -->
<arg name="foo2" value="$(arg foo1)"/>
<node name="bar" pkg="bar" type="bar">
<param name="foo" value="$(arg foo2k)" />
</node>
</launch>

0 comments on commit 870817e

Please sign in to comment.