Skip to content

Commit

Permalink
Allow empty machine arg in node tag. (#1885)
Browse files Browse the repository at this point in the history
* Allow empty machine tag.

Fixes #274.

* Fix tests for machine arg in node tag.

* Remove obsolete test.

* Remove obsolete test
  • Loading branch information
peci1 authored Feb 20, 2020
1 parent 7ad4625 commit fa9271d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions tools/roslaunch/src/roslaunch/xmlloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,6 @@ def _node_tag(self, tag, context, ros_config, default_machine, is_test=False, ve
required = self.opt_attrs(tag, context, ('machine', 'args',
'output', 'respawn', 'respawn_delay', 'cwd',
'launch-prefix', 'required'))
if tag.hasAttribute('machine') and not len(machine.strip()):
raise XmlParseException("<node> 'machine' must be non-empty: [%s]"%machine)
if not machine and default_machine:
machine = default_machine.name
# validate respawn, required
Expand Down
1 change: 0 additions & 1 deletion tools/roslaunch/test/unit/test_xmlloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,6 @@ def test_node_invalid(self):
'test-node-invalid-name-1.xml',
'test-node-invalid-name-2.xml',
'test-node-invalid-name-3.xml',
'test-node-invalid-machine.xml',
'test-node-invalid-respawn.xml',
'test-node-invalid-respawn-required.xml',
'test-node-invalid-required-1.xml',
Expand Down
3 changes: 0 additions & 3 deletions tools/roslaunch/test/xml/test-node-invalid-machine.xml

This file was deleted.

0 comments on commit fa9271d

Please sign in to comment.