Skip to content

ros2:source fails to build because pytest cant be found #270

@mikaelarguedas

Description

@mikaelarguedas

Currently the source image fails to build for both crystal and dashing. Despite python3-pytest being installed on the system, the module cannot be found by ament_cmake_pytest resulting in warnings like:

--- stderr: rosidl_adapter
CMake Warning at /opt/ros2_ws/install/ament_cmake_pytest/share/ament_cmake_pytest/cmake/ament_add_pytest_test.cmake:73 (message):
  The Python module 'pytest' was not found, pytests can not be run (e.g.  on
  Ubuntu/Debian install the package 'python3-pytest')
Call Stack (most recent call first):
  CMakeLists.txt:31 (ament_add_pytest_test)

Some pytests targets in the ROS stack are not checked for existence before setting properties leading to CMake Errors.

Needs some more investigation to figure out why the module is not found and the list of tests that should check for target existence

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions