Skip to content

Commit 80ce8a4

Browse files
added skip to ROS2 tests
1 parent df5a687 commit 80ce8a4

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

test/test_package.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ def test_database_from_paths(filesystem):
255255
assert set(db) == {'angles', 'tf2', 'tf2_msgs', 'tf2_py', 'tf2_ros'}
256256

257257

258+
@pytest.mark.skip(reason='ROS2 is not fully supported')
258259
@pytest.mark.parametrize('sut', ['turtlebot3-ros2'], indirect=True)
259260
def test_package_location_ros2(sut):
260261
expected_paths = {'/ros_ws/install/pcl_conversions',
@@ -340,7 +341,7 @@ def test_package_location_ros2(sut):
340341
'/ros_ws/install/action_msgs',
341342
'/ros_ws/install/cartographer_ros_msgs',
342343
'/ros_ws/install/message_filters',
343-
'/ros_ws/install/turtlebot3_cartographer',
344+
'/ros_ws/install/turtlebot3_cartographer',
344345
'/ros_ws/install/ament_flake8',
345346
'/ros_ws/install/dwb_controller',
346347
'/ros_ws/install/nav2_dwb_controller',

test/test_roslaunch.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,24 +62,25 @@ def test_remappings(sut):
6262
assert set(state.publishers['/funkybits']) == {'/gazebo'}
6363

6464

65-
65+
@pytest.mark.skip(reason='ROS2 is not fully supported')
6666
@pytest.mark.parametrize('sut', ['turtlebot3-ros2'], indirect=True)
6767
def test_locate_with_package_ros2(sut):
6868
actual_path = sut.ros2.launch.locate('cartographer.launch.py', package='turtlebot3_cartographer')
6969
expected_path = '/ros_ws/install/turtlebot3_cartographer/share/launch/cartographer.launch.py'
7070
assert actual_path == expected_path
7171

7272

73+
@pytest.mark.skip(reason='ROS2 is not fully supported')
7374
@pytest.mark.parametrize('sut', ['turtlebot3-ros2'], indirect=True)
7475
def test_launch_ros2(sut):
7576
actual_controller_command = sut.ros2.launch.launch('cartographer.launch.py', package='turtlebot3_cartographer').popen.args
7677
expected_controller_command = 'ros2 launch turtlebot3_cartographer cartographer.launch.py'
7778
assert actual_controller_command == expected_controller_command
7879

7980

81+
@pytest.mark.skip(reason='ROS2 is not fully supported')
8082
@pytest.mark.parametrize('sut', ['turtlebot3-ros2'], indirect=True)
8183
def test_launch_with_full_path(sut):
8284
actual_controller_command = sut.ros2.launch.launch('/ros_ws/src/turtlebot3/turtlebot3_cartographer/launch/cartographer.launch.py', package='turtlebot3_cartographer').popen.args
8385
expected_controller_command = 'ros2 launch turtlebot3_cartographer cartographer.launch.py'
8486
assert actual_controller_command == expected_controller_command
85-

test/test_state.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import dockerblade
77

8+
@pytest.mark.skip(reason="skipping ROS2 tests")
89
@pytest.mark.parametrize('sut', ['turtlebot3-ros2'], indirect=True)
910
def test_state_publishers(sut):
1011
sut.ros2.launch('simple.launch.py', package='launch')
@@ -21,6 +22,8 @@ def test_state_publishers(sut):
2122
'/landmark_poses_list'})
2223
assert actual_publishers == expected_publishers
2324

25+
26+
@pytest.mark.skip(reason="skipping ROS2 tests")
2427
@pytest.mark.parametrize('sut', ['turtlebot3-ros2'], indirect=True)
2528
def test_state_subscribers(sut):
2629
sut.ros2.launch('simple.launch.py', package='launch')
@@ -35,6 +38,8 @@ def test_state_subscribers(sut):
3538
''})
3639
assert actual_subscribers == expected_subscribers
3740

41+
42+
@pytest.mark.skip(reason="skipping ROS2 tests")
3843
@pytest.mark.parametrize('sut', ['turtlebot3-ros2'], indirect=True)
3944
def test_state_services(sut):
4045
sut.ros2.launch('simple.launch.py', package='launch')

0 commit comments

Comments
 (0)