Closed ooeygui closed 3 years ago
When running ROS tests using colcon test --event-handlers console_direct+ on the Windows build (https://github.com/ros-planning/srdfdom/pull/91),
colcon test --event-handlers console_direct+
I believe this is related to ROS2 tests not working on Ubuntu (https://github.com/ros-planning/srdfdom/issues/92).
test 1 Start 1: test_parser 1: Test command: C:\opt\ros\foxy\x64\python.exe "-u" "C:/opt/ros/foxy/x64/share/ament_cmake_test/cmake/run_test.py" "C:/ws/moveit2_ws/build/srdfdom/test_results/srdfdom/test_parser.xunit.xml" "--package-name" "srdfdom" "--output-file" "C:/ws/moveit2_ws/build/srdfdom/ament_cmake_pytest/test_parser.txt" "--command" "C:/opt/ros/foxy/x64/python.exe" "-u" "-m" "pytest" "C:/ws/moveit2_ws/src/srdfdom/test/test.py" "-o" "cache_dir=C:/ws/moveit2_ws/build/srdfdom/ament_cmake_pytest/test_parser/.cache" "--junit-xml=C:/ws/moveit2_ws/build/srdfdom/test_results/srdfdom/test_parser.xunit.xml" "--junit-prefix=srdfdom" 1: Test timeout computed to be: 60 1: -- run_test.py: invoking following command in 'C:\ws\moveit2_ws\build\srdfdom': 1: - C:/opt/ros/foxy/x64/python.exe -u -m pytest C:/ws/moveit2_ws/src/srdfdom/test/test.py -o cache_dir=C:/ws/moveit2_ws/build/srdfdom/ament_cmake_pytest/test_parser/.cache --junit-xml=C:/ws/moveit2_ws/build/srdfdom/test_results/srdfdom/test_parser.xunit.xml --junit-prefix=srdfdom 1: ============================= test session starts ============================= 1: platform win32 -- Python 3.8.3, pytest-6.0.1, py-1.9.0, pluggy-0.13.1 1: cachedir: C:\ws\moveit2_ws\build\srdfdom\ament_cmake_pytest\test_parser\.cache 1: rootdir: C:\ws\moveit2_ws\src\srdfdom 1: plugins: ament-copyright-0.9.5, ament-flake8-0.9.5, ament-lint-0.9.5, ament-mypy-0.9.5, ament-pep257-0.9.5, ament-xmllint-0.9.5, colcon-core-0.6.0, launch-testing-0.10.3, launch-testing-ros-0.10.3, cov-2.10.1, mock-3.3.1, repeat-0.8.0, rerunfailures-9.1 1: collected 0 items / 1 error 1: 1: =================================== ERRORS ==================================== 1: ________________________ ERROR collecting test session ________________________ 1: C:\opt\ros\foxy\x64\lib\site-packages\pluggy\hooks.py:286: in __call__ 1: return self._hookexec(self, self.get_hookimpls(), kwargs) 1: C:\opt\ros\foxy\x64\lib\site-packages\pluggy\manager.py:93: in _hookexec 1: return self._inner_hookexec(hook, methods, kwargs) 1: C:\opt\ros\foxy\x64\lib\site-packages\pluggy\manager.py:84: in <lambda> 1: self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( 1: C:\opt\ros\foxy\x64\lib\site-packages\_pytest\python.py:195: in pytest_collect_file 1: module = ihook.pytest_pycollect_makemodule( 1: C:\opt\ros\foxy\x64\lib\site-packages\pluggy\hooks.py:286: in __call__ 1: return self._hookexec(self, self.get_hookimpls(), kwargs) 1: C:\opt\ros\foxy\x64\lib\site-packages\pluggy\manager.py:93: in _hookexec 1: return self._inner_hookexec(hook, methods, kwargs) 1: C:\opt\ros\foxy\x64\lib\site-packages\pluggy\manager.py:84: in <lambda> 1: self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( 1: C:\opt\ros\foxy\x64\lib\site-packages\launch_testing\pytest\hooks.py:160: in pytest_pycollect_makemodule 1: entrypoint = find_launch_test_entrypoint(path) 1: C:\opt\ros\foxy\x64\lib\site-packages\launch_testing\pytest\hooks.py:154: in find_launch_test_entrypoint 1: return getattr(path.pyimport(), 'generate_test_description', None) 1: C:\opt\ros\foxy\x64\lib\site-packages\py\_path\local.py:704: in pyimport 1: __import__(modname) 1: C:\opt\ros\foxy\x64\lib\site-packages\_pytest\assertion\rewrite.py:170: in exec_module 1: exec(co, module.__dict__) 1: ..\..\src\srdfdom\test\test.py:7: in <module> 1: from srdfdom.srdf import SRDF 1: E ModuleNotFoundError: No module named 'srdfdom' 1: ============================== warnings summary =============================== 1: C:\opt\ros\foxy\x64\lib\site-packages\_pytest\junitxml.py:446 1: Warning: The 'junit_family' default value will change to 'xunit2' in pytest 6.0. See: 1: https://docs.pytest.org/en/stable/deprecations.html#junit-family-default-value-change-to-xunit2 1: for more information. 1: 1: -- Docs: https://docs.pytest.org/en/stable/warnings.html 1: - generated xml file: C:\ws\moveit2_ws\build\srdfdom\test_results\srdfdom\test_parser.xunit.xml - 1: =========================== short test summary info =========================== 1: ERROR ..\..\src\srdfdom - ModuleNotFoundError: No module named 'srdfdom' 1: !!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!! 1: ========================= 1 warning, 1 error in 0.30s ========================= 1: -- run_test.py: return code 2
Fixed by https://github.com/ros-planning/srdfdom/pull/94
When running ROS tests using
colcon test --event-handlers console_direct+
on the Windows build (https://github.com/ros-planning/srdfdom/pull/91),I believe this is related to ROS2 tests not working on Ubuntu (https://github.com/ros-planning/srdfdom/issues/92).