Comments (4)
this is the right way to run the tests (alternatively you can pass --only PACKAGE_NAME
rather than the full path of your package).
Looking at the failure, it looks like only the tests involving python are failing. The error message seems to indicate that rclpy
couldn't find fastrtps when creating subscribers/publishers.
are you able to run talker_py
and listener_py
after sourcing this workspace?
from system_tests.
Yes, python example working ok, full logs are here, I have to change Fast-RTPS for eProsima/Fast-DDS#77
Script started on Tue 21 Mar 2017 05:09:09 AM UTC
user@ubuntu-16:~/ros2_ws/src$ wstool info
workspace: /home/user/ros2_ws/src
Localname S SCM Version (Spec) UID (Spec) URI (Spec) [http(s)://...]
--------- - --- -------------- ----------- ---------------------------
vendor/console_bridge git <detached> (148df7e841b91da488ec3bb4abd295a2bccdb728) 148df7e841b9 github.com/ros/console_bridge.git
ros2/tlsf git <detached> (release-beta1) 69af8ace93b0 github.com/ros2/tlsf.git
ros2/system_tests V git add_mutibyte_tests (release-beta1) e2c2a2f81d40 (c0b9c39f9d72) github.com/ros2/system_tests.git
ros2/rosidl_typesupport git <detached> (release-beta1) b0e330cc592f github.com/ros2/rosidl_typesupport.git
ros2/rosidl_dds git <detached> (release-beta1) bfd65a903487 github.com/ros2/rosidl_dds.git
ros2/rosidl V git add_multibyte (release-beta1) d075437bac0d (a3074a616e43) github.com/ros2/rosidl.git
ros2/ros1_bridge git <detached> (release-beta1) 5de8656614ab github.com/ros2/ros1_bridge.git
ros2/rmw_opensplice git <detached> (release-beta1) 853aba13aee4 github.com/ros2/rmw_opensplice.git
ros2/rmw_implementation git <detached> (release-beta1) 4e9f8a3d8430 github.com/ros2/rmw_implementation.git
ros2/rmw_fastrtps git <detached> (release-beta1) f9fc9a1b9874 github.com/ros2/rmw_fastrtps.git
ros2/rmw_connext git <detached> (release-beta1) 5449e8d1484b github.com/ros2/rmw_connext.git
ros2/rmw git <detached> (release-beta1) 18b08d89a118 github.com/ros2/rmw.git
ros2/realtime_support git <detached> (release-beta1) 8e2b486c2b99 github.com/ros2/realtime_support.git
ros2/rclpy git <detached> (release-beta1) 5209e5e95add github.com/ros2/rclpy.git
ros2/rclcpp git <detached> (release-beta1) d00a441195e8 github.com/ros2/rclcpp.git
ros2/rcl_interfaces git <detached> (release-beta1) 1e6202ab6863 github.com/ros2/rcl_interfaces.git
ros2/rcl git <detached> (release-beta1) 638f976783ca github.com/ros2/rcl.git
ros/poco_vendor git <detached> (release-beta1) 00646ef80ea2 github.com/ros2/poco_vendor.git
ros2/launch git <detached> (release-beta1) 21315578f2f0 github.com/ros2/launch.git
ros2/examples git <detached> (release-beta1) b57f9591d964 github.com/ros2/examples.git
ros2/demos git <detached> (release-beta1) 02178ac928f8 github.com/ros2/demos.git
ros2/common_interfaces git <detached> (release-beta1) 4872c6e0c479 github.com/ros2/common_interfaces.git
ros/geometry2 git <detached> (3a820ee7238e406282c901991186adc6558cdb5e) 3a820ee7238e github.com/ros/geometry2.git
ros/class_loader git <detached> (a7e9af992f9fb3ba6b859203a322153ee82f4de5) a7e9af992f9f github.com/ros/class_loader.git
eProsima/Fast-RTPS M git <detached> (0a141ba330c65b39985c1ee3823edeb0e38b25ca) 0a141ba330c6 github.com/eProsima/Fast-RTPS.git
eProsima/Fast-CDR git <detached> (8653f20bd3028621cc6b2f06fb6e0477d5f120fc) 8653f20bd302 github.com/eProsima/Fast-CDR.git
ament/uncrustify git <detached> (release-beta1) 0cb6cf0f5c59 github.com/ament/uncrustify.git
ament/osrf_pycommon git <detached> (8aaf12c5538ddc1aa5a6eba912c518e4e68f717f) 8aaf12c5538d github.com/osrf/osrf_pycommon.git
ament/gtest_vendor git <detached> (release-beta1) 20fe2efdbdcb github.com/ament/gtest_vendor.git
ament/gmock_vendor git <detached> (release-beta1) c0a41c28ac4f github.com/ament/gmock_vendor.git
ament/ament_tools git <detached> (release-beta1) 5811a5002233 github.com/ament/ament_tools.git
ament/ament_package git <detached> (release-beta1) 778906c805fd github.com/ament/ament_package.git
ament/ament_lint git <detached> (release-beta1) 8f5a186631a0 github.com/ament/ament_lint.git
ament/ament_index git <detached> (release-beta1) db5b40c5929b github.com/ament/ament_index.git
ament/ament_cmake git <detached> (release-beta1) 3610daaaa978 github.com/ament/ament_cmake.git
user@ubuntu-16:~/ros2_ws/src$ wstool diff
diff --git eProsima/Fast-RTPS/src/cpp/transport/UDPv4Transport.cpp eProsima/Fast-RTPS/src/cpp/transport/UDPv4Transport.cpp
index 283f1eb..b50d711 100644
--- eProsima/Fast-RTPS/src/cpp/transport/UDPv4Transport.cpp
+++ eProsima/Fast-RTPS/src/cpp/transport/UDPv4Transport.cpp
@@ -165,6 +165,8 @@ bool UDPv4Transport::OpenInputChannel(const Locator_t& locator)
for (const auto& infoIP : locNames)
{
auto ip = boost::asio::ip::address_v4::from_string(infoIP.name);
+ std::cerr << "ip " << infoIP.name << std::endl;
+ if ( infoIP.name != "10.12.0.5" && infoIP.name != "172.17.0.1" )
socket.set_option(ip::multicast::join_group(ip::address_v4::from_string(locator.to_IP4_string()), ip));
}
}
user@ubuntu-16:~/ros2_ws/src$ listener_py
ip 127.0.0.1
ip 104.131.157.73
ip 10.12.0.5
ip 172.17.0.1
ip 127.0.0.1
ip 104.131.157.73
ip 10.12.0.5
ip 172.17.0.1
I heard: [Hello World: 180]
I heard: [Hello World: 181]
I heard: [Hello World: 182]
I heard: [Hello World: 183]
I heard: [Hello World: 184]
^CTraceback (most recent call last):
File "/home/user/ros2_ws/install/bin/listener_py", line 9, in <module>
load_entry_point('demo-nodes-py', 'console_scripts', 'listener_py')()
File "/home/user/ros2_ws/build/demo_nodes_py/topics/listener_py.py", line 39, in main
rclpy.spin_once(node)
File "/home/user/ros2_ws/install/lib/python3.5/site-packages/rclpy/__init__.py", line 96, in spin_once
raise KeyboardInterrupt
KeyboardInterrupt
user@ubuntu-16:~/ros2_ws/src$ ament test ~/ros2_ws/src/ros2/system_tests/test_communication/
# Topological order
- test_communication
Process package 'test_communication' with context:
--------------------------------------------------------------------------------
source_space => /home/user/ros2_ws/src/ros2/system_tests/test_communication
build_space => /home/user/ros2_ws/src/build/test_communication
install_space => /home/user/ros2_ws/src/install
make_flags => -j4, -l4
build_tests => True
--------------------------------------------------------------------------------
+++ Building 'test_communication'
==> '. /home/user/ros2_ws/src/build/test_communication/cmake__build.sh && /usr/bin/make cmake_check_build_system' in '/home/user/ros2_ws/src/build/test_communication'
==> '. /home/user/ros2_ws/src/build/test_communication/cmake__build.sh && /usr/bin/make -j4 -l4' in '/home/user/ros2_ws/src/build/test_communication'
[ 1%] Built target test_communication__cpp
[ 17%] Built target test_communication__rosidl_generator_c
[ 17%] Built target test_communication__py
[ 18%] Built target gtest
[ 20%] Built target gtest_main
[ 37%] Built target test_communication__rosidl_typesupport_cpp
[ 54%] Built target test_communication__rosidl_typesupport_introspection_cpp
[ 72%] Built target test_communication__rosidl_typesupport_introspection_c
[ 72%] Built target test_communication
[ 74%] Built target test_subscriber_cpp__rmw_fastrtps_cpp
[ 89%] Built target test_communication__rosidl_typesupport_introspection_c__pyext
[ 91%] Built target test_subscription_valid_data_cpp__rmw_fastrtps_cpp
[ 93%] Built target test_publisher_cpp__rmw_fastrtps_cpp
[ 94%] Built target test_replier_cpp__rmw_fastrtps_cpp
[ 96%] Built target test_messages_c__rmw_fastrtps_cpp
[ 98%] Built target test_publisher_subscriber_cpp__rmw_fastrtps_cpp
[100%] Built target test_requester_cpp__rmw_fastrtps_cpp
+++ Installing 'test_communication'
==> '. /home/user/ros2_ws/src/build/test_communication/cmake__install.sh && /usr/bin/make install' in '/home/user/ros2_ws/src/build/test_communication'
[ 1%] Built target test_communication__cpp
[ 18%] Built target test_communication__rosidl_typesupport_introspection_cpp
[ 35%] Built target test_communication__rosidl_typesupport_cpp
[ 50%] Built target test_communication__rosidl_generator_c
[ 68%] Built target test_communication__rosidl_typesupport_introspection_c
[ 68%] Built target test_communication
[ 70%] Built target test_subscriber_cpp__rmw_fastrtps_cpp
[ 72%] Built target test_subscription_valid_data_cpp__rmw_fastrtps_cpp
[ 73%] Built target test_communication__py
[ 88%] Built target test_communication__rosidl_typesupport_introspection_c__pyext
[ 90%] Built target test_publisher_cpp__rmw_fastrtps_cpp
[ 91%] Built target test_replier_cpp__rmw_fastrtps_cpp
[ 92%] Built target gtest
[ 94%] Built target gtest_main
[ 96%] Built target test_messages_c__rmw_fastrtps_cpp
[ 98%] Built target test_publisher_subscriber_cpp__rmw_fastrtps_cpp
[100%] Built target test_requester_cpp__rmw_fastrtps_cpp
�[36mInstall the project...�[0m
-- Install configuration: ""
-- Up-to-date: /home/user/ros2_ws/src/install/share/ament_index/resource_index/package_run_dependencies/test_communication
-- Up-to-date: /home/user/ros2_ws/src/install/share/ament_index/resource_index/parent_prefix_path/test_communication
-- Up-to-date: /home/user/ros2_ws/src/install/share/test_communication/local_setup.bash
-- Up-to-date: /home/user/ros2_ws/src/install/share/test_communication/local_setup.sh
-- Up-to-date: /home/user/ros2_ws/src/install/share/test_communication/local_setup.zsh
-- Up-to-date: /home/user/ros2_ws/src/install/share/ament_index/resource_index/packages/test_communication
-- Up-to-date: /home/user/ros2_ws/src/install/share/test_communication/cmake/rosidl_cmake-extras.cmake
-- Up-to-date: /home/user/ros2_ws/src/install/share/test_communication/cmake/ament_cmake_export_dependencies-extras.cmake
-- Up-to-date: /home/user/ros2_ws/src/install/share/test_communication/cmake/test_communicationConfig.cmake
-- Up-to-date: /home/user/ros2_ws/src/install/share/test_communication/cmake/test_communicationConfig-version.cmake
-- Up-to-date: /home/user/ros2_ws/src/install/share/test_communication/package.xml
-- [ament] Deploying: /home/user/ros2_ws/src/install/local_setup.bash
-- [ament] Deploying: /home/user/ros2_ws/src/install/local_setup.sh
-- [ament] Deploying: /home/user/ros2_ws/src/install/local_setup.zsh
-- [ament] Deploying: /home/user/ros2_ws/src/install/setup.bash
-- [ament] Deploying: /home/user/ros2_ws/src/install/setup.sh
-- [ament] Deploying: /home/user/ros2_ws/src/install/setup.zsh
-- [ament] Deploying: /home/user/ros2_ws/src/install/_order_packages.py
+++ Testing 'test_communication'
==> '. /home/user/ros2_ws/src/build/test_communication/cmake__test.sh && /usr/bin/make test ARGS=-V -D ExperimentalTest --no-compress-output' in '/home/user/ros2_ws/src/build/test_communication'
�[36mRunning tests...�[0m
UpdateCTestConfiguration from :/home/user/ros2_ws/src/build/test_communication/DartConfiguration.tcl
Parse Config file:/home/user/ros2_ws/src/build/test_communication/DartConfiguration.tcl
Site: ubuntu-16.04
Build name: Linux-c++
Add coverage exclude regular expressions.
SetCTestConfiguration:CMakeCommand:/usr/bin/cmake
UpdateCTestConfiguration from :/home/user/ros2_ws/src/build/test_communication/DartConfiguration.tcl
Parse Config file:/home/user/ros2_ws/src/build/test_communication/DartConfiguration.tcl
Test project /home/user/ros2_ws/src/build/test_communication
Constructing a list of tests
Done constructing a list of tests
Checking test dependency graph...
Checking test dependency graph end
test 1
Start 1: test_messages_c__rmw_fastrtps_cpp
1: Test command: /usr/bin/python3 "-u" "/home/user/ros2_ws/install/share/ament_cmake_test/cmake/run_test.py" "/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_messages_c__rmw_fastrtps_cpp.gtest.xml" "--output-file" "/home/user/ros2_ws/src/build/test_communication/ament_cmake_gtest/test_messages_c__rmw_fastrtps_cpp.txt" "--env" "RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp" "--command" "/home/user/ros2_ws/src/build/test_communication/test_messages_c__rmw_fastrtps_cpp" "--gtest_output=xml:/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_messages_c__rmw_fastrtps_cpp.gtest.xml"
1: Test timeout computed to be: 90
1: -- run_test.py: extra environment variables:
1: - RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp
1: -- run_test.py: invoking following command in '/home/user/ros2_ws/src/ros2/system_tests/test_communication':
1: - /home/user/ros2_ws/src/build/test_communication/test_messages_c__rmw_fastrtps_cpp --gtest_output=xml:/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_messages_c__rmw_fastrtps_cpp.gtest.xml
1: Running main() from gtest_main.cc
1: [==========] Running 9 tests from 1 test case.
1: [----------] Global test environment set-up.
1: [----------] 9 tests from TestMessagesFixture
1: [ RUN ] TestMessagesFixture.test_primitives
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: [ OK ] TestMessagesFixture.test_primitives (114 ms)
1: [ RUN ] TestMessagesFixture.test_nested
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: [ OK ] TestMessagesFixture.test_nested (112 ms)
1: [ RUN ] TestMessagesFixture.test_builtins
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: [ OK ] TestMessagesFixture.test_builtins (107 ms)
1: [ RUN ] TestMessagesFixture.test_staticarrayprimitives
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: [ OK ] TestMessagesFixture.test_staticarrayprimitives (108 ms)
1: [ RUN ] TestMessagesFixture.test_staticarraynested
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: [ OK ] TestMessagesFixture.test_staticarraynested (107 ms)
1: [ RUN ] TestMessagesFixture.test_dynamicarrayprimitives
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: [ OK ] TestMessagesFixture.test_dynamicarrayprimitives (118 ms)
1: [ RUN ] TestMessagesFixture.test_dynamicarraynested
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: [ OK ] TestMessagesFixture.test_dynamicarraynested (115 ms)
1: [ RUN ] TestMessagesFixture.test_boundedarrayprimitives
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: [ OK ] TestMessagesFixture.test_boundedarrayprimitives (113 ms)
1: [ RUN ] TestMessagesFixture.test_boundedarraynested
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: ip 127.0.0.1
1: ip 104.131.157.73
1: ip 10.12.0.5
1: ip 172.17.0.1
1: [ OK ] TestMessagesFixture.test_boundedarraynested (109 ms)
1: [----------] 9 tests from TestMessagesFixture (1006 ms total)
1:
1: [----------] Global test environment tear-down
1: [==========] 9 tests from 1 test case ran. (1006 ms total)
1: [ PASSED ] 9 tests.
1: -- run_test.py: return code 0
1: -- run_test.py: verify result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_messages_c__rmw_fastrtps_cpp.gtest.xml'
1/68 Test #1: test_messages_c__rmw_fastrtps_cpp .................................................... Passed 1.19 sec
test 2
Start 2: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__BoundedArrayNested
2: Test command: /usr/bin/python3 "-u" "/home/user/ros2_ws/install/share/ament_cmake_test/cmake/run_test.py" "/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__BoundedArrayNested.xml" "--generate-result-on-success" "--env" "RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp" "--append-env" "LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication" "--command" "/home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp" "BoundedArrayNested"
2: Test timeout computed to be: 15
2: -- run_test.py: extra environment variables:
2: - RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp
2: -- run_test.py: extra environment variables to append:
2: - LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication
2: -- run_test.py: invoking following command in '/home/user/ros2_ws/src/ros2/system_tests/test_communication':
2: - /home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp BoundedArrayNested
2: ip 127.0.0.1
2: ip 104.131.157.73
2: ip 10.12.0.5
2: ip 172.17.0.1
2: ip 127.0.0.1
2: ip 104.131.157.73
2: ip 10.12.0.5
2: ip 172.17.0.1
2: terminate called after throwing an instance of 'std::length_error'
2: what(): Exceeded upper bound
2: -- run_test.py: return code -6
2: -- run_test.py: generate result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__BoundedArrayNested.xml' with failed test
2: -- run_test.py: verify result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__BoundedArrayNested.xml'
2/68 Test #2: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__BoundedArrayNested ..................***Failed 0.23 sec
test 3
Start 3: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__BoundedArrayPrimitives
3: Test command: /usr/bin/python3 "-u" "/home/user/ros2_ws/install/share/ament_cmake_test/cmake/run_test.py" "/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__BoundedArrayPrimitives.xml" "--generate-result-on-success" "--env" "RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp" "--append-env" "LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication" "--command" "/home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp" "BoundedArrayPrimitives"
3: Test timeout computed to be: 15
3: -- run_test.py: extra environment variables:
3: - RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp
3: -- run_test.py: extra environment variables to append:
3: - LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication
3: -- run_test.py: invoking following command in '/home/user/ros2_ws/src/ros2/system_tests/test_communication':
3: - /home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp BoundedArrayPrimitives
3: ip 127.0.0.1
3: ip 104.131.157.73
3: ip 10.12.0.5
3: ip 172.17.0.1
3: ip 127.0.0.1
3: ip 104.131.157.73
3: ip 10.12.0.5
3: ip 172.17.0.1
3: terminate called after throwing an instance of 'std::length_error'
3: what(): Exceeded upper bound
3: -- run_test.py: return code -6
3: -- run_test.py: generate result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__BoundedArrayPrimitives.xml' with failed test
3: -- run_test.py: verify result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__BoundedArrayPrimitives.xml'
3/68 Test #3: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__BoundedArrayPrimitives ..............***Failed 0.21 sec
test 4
Start 4: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Builtins
4: Test command: /usr/bin/python3 "-u" "/home/user/ros2_ws/install/share/ament_cmake_test/cmake/run_test.py" "/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Builtins.xml" "--generate-result-on-success" "--env" "RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp" "--append-env" "LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication" "--command" "/home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp" "Builtins"
4: Test timeout computed to be: 15
4: -- run_test.py: extra environment variables:
4: - RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp
4: -- run_test.py: extra environment variables to append:
4: - LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication
4: -- run_test.py: invoking following command in '/home/user/ros2_ws/src/ros2/system_tests/test_communication':
4: - /home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp Builtins
4: ip 127.0.0.1
4: ip 104.131.157.73
4: ip 10.12.0.5
4: ip 172.17.0.1
4: ip 127.0.0.1
4: ip 104.131.157.73
4: ip 10.12.0.5
4: ip 172.17.0.1
4: terminate called after throwing an instance of 'std::length_error'
4: what(): Exceeded upper bound
4: -- run_test.py: return code -6
4: -- run_test.py: generate result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Builtins.xml' with failed test
4: -- run_test.py: verify result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Builtins.xml'
4/68 Test #4: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Builtins ............................***Failed 0.20 sec
test 5
Start 5: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__DynamicArrayNested
5: Test command: /usr/bin/python3 "-u" "/home/user/ros2_ws/install/share/ament_cmake_test/cmake/run_test.py" "/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__DynamicArrayNested.xml" "--generate-result-on-success" "--env" "RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp" "--append-env" "LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication" "--command" "/home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp" "DynamicArrayNested"
5: Test timeout computed to be: 15
5: -- run_test.py: extra environment variables:
5: - RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp
5: -- run_test.py: extra environment variables to append:
5: - LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication
5: -- run_test.py: invoking following command in '/home/user/ros2_ws/src/ros2/system_tests/test_communication':
5: - /home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp DynamicArrayNested
5: ip 127.0.0.1
5: ip 104.131.157.73
5: ip 10.12.0.5
5: ip 172.17.0.1
5: ip 127.0.0.1
5: ip 104.131.157.73
5: ip 10.12.0.5
5: ip 172.17.0.1
5: terminate called after throwing an instance of 'std::length_error'
5: what(): Exceeded upper bound
5: -- run_test.py: return code -6
5: -- run_test.py: generate result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__DynamicArrayNested.xml' with failed test
5: -- run_test.py: verify result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__DynamicArrayNested.xml'
5/68 Test #5: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__DynamicArrayNested ..................***Failed 0.21 sec
test 6
Start 6: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__DynamicArrayPrimitives
6: Test command: /usr/bin/python3 "-u" "/home/user/ros2_ws/install/share/ament_cmake_test/cmake/run_test.py" "/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__DynamicArrayPrimitives.xml" "--generate-result-on-success" "--env" "RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp" "--append-env" "LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication" "--command" "/home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp" "DynamicArrayPrimitives"
6: Test timeout computed to be: 15
6: -- run_test.py: extra environment variables:
6: - RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp
6: -- run_test.py: extra environment variables to append:
6: - LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication
6: -- run_test.py: invoking following command in '/home/user/ros2_ws/src/ros2/system_tests/test_communication':
6: - /home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp DynamicArrayPrimitives
6: ip 127.0.0.1
6: ip 104.131.157.73
6: ip 10.12.0.5
6: ip 172.17.0.1
6: ip 127.0.0.1
6: ip 104.131.157.73
6: ip 10.12.0.5
6: ip 172.17.0.1
6: terminate called after throwing an instance of 'std::length_error'
6: what(): Exceeded upper bound
6: -- run_test.py: return code -6
6: -- run_test.py: generate result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__DynamicArrayPrimitives.xml' with failed test
6: -- run_test.py: verify result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__DynamicArrayPrimitives.xml'
6/68 Test #6: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__DynamicArrayPrimitives ..............***Failed 0.22 sec
test 7
Start 7: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Empty
7: Test command: /usr/bin/python3 "-u" "/home/user/ros2_ws/install/share/ament_cmake_test/cmake/run_test.py" "/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Empty.xml" "--generate-result-on-success" "--env" "RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp" "--append-env" "LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication" "--command" "/home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp" "Empty"
7: Test timeout computed to be: 15
7: -- run_test.py: extra environment variables:
7: - RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp
7: -- run_test.py: extra environment variables to append:
7: - LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication
7: -- run_test.py: invoking following command in '/home/user/ros2_ws/src/ros2/system_tests/test_communication':
7: - /home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp Empty
7: ip 127.0.0.1
7: ip 104.131.157.73
7: ip 10.12.0.5
7: ip 172.17.0.1
7: ip 127.0.0.1
7: ip 104.131.157.73
7: ip 10.12.0.5
7: ip 172.17.0.1
7: terminate called after throwing an instance of 'std::length_error'
7: what(): Exceeded upper bound
7: -- run_test.py: return code -6
7: -- run_test.py: generate result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Empty.xml' with failed test
7: -- run_test.py: verify result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Empty.xml'
7/68 Test #7: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Empty ...............................***Failed 0.22 sec
test 8
Start 8: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Nested
8: Test command: /usr/bin/python3 "-u" "/home/user/ros2_ws/install/share/ament_cmake_test/cmake/run_test.py" "/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Nested.xml" "--generate-result-on-success" "--env" "RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp" "--append-env" "LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication" "--command" "/home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp" "Nested"
8: Test timeout computed to be: 15
8: -- run_test.py: extra environment variables:
8: - RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp
8: -- run_test.py: extra environment variables to append:
8: - LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication
8: -- run_test.py: invoking following command in '/home/user/ros2_ws/src/ros2/system_tests/test_communication':
8: - /home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp Nested
8: ip 127.0.0.1
8: ip 104.131.157.73
8: ip 10.12.0.5
8: ip 172.17.0.1
8: ip 127.0.0.1
8: ip 104.131.157.73
8: ip 10.12.0.5
8: ip 172.17.0.1
8: terminate called after throwing an instance of 'std::length_error'
8: what(): Exceeded upper bound
8: -- run_test.py: return code -6
8: -- run_test.py: generate result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Nested.xml' with failed test
8: -- run_test.py: verify result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Nested.xml'
8/68 Test #8: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Nested ..............................***Failed 0.22 sec
test 9
Start 9: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Primitives
9: Test command: /usr/bin/python3 "-u" "/home/user/ros2_ws/install/share/ament_cmake_test/cmake/run_test.py" "/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Primitives.xml" "--generate-result-on-success" "--env" "RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp" "--append-env" "LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication" "--command" "/home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp" "Primitives"
9: Test timeout computed to be: 15
9: -- run_test.py: extra environment variables:
9: - RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp
9: -- run_test.py: extra environment variables to append:
9: - LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication
9: -- run_test.py: invoking following command in '/home/user/ros2_ws/src/ros2/system_tests/test_communication':
9: - /home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp Primitives
9: ip 127.0.0.1
9: ip 104.131.157.73
9: ip 10.12.0.5
9: ip 172.17.0.1
9: ip 127.0.0.1
9: ip 104.131.157.73
9: ip 10.12.0.5
9: ip 172.17.0.1
9: terminate called after throwing an instance of 'std::length_error'
9: what(): Exceeded upper bound
9: -- run_test.py: return code -6
9: -- run_test.py: generate result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Primitives.xml' with failed test
9: -- run_test.py: verify result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Primitives.xml'
9/68 Test #9: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__Primitives ..........................***Failed 0.23 sec
test 10
Start 10: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__StaticArrayNested
10: Test command: /usr/bin/python3 "-u" "/home/user/ros2_ws/install/share/ament_cmake_test/cmake/run_test.py" "/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__StaticArrayNested.xml" "--generate-result-on-success" "--env" "RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp" "--append-env" "LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication" "--command" "/home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp" "StaticArrayNested"
10: Test timeout computed to be: 15
10: -- run_test.py: extra environment variables:
10: - RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp
10: -- run_test.py: extra environment variables to append:
10: - LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication
10: -- run_test.py: invoking following command in '/home/user/ros2_ws/src/ros2/system_tests/test_communication':
10: - /home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp StaticArrayNested
10: ip 127.0.0.1
10: ip 104.131.157.73
10: ip 10.12.0.5
10: ip 172.17.0.1
10: ip 127.0.0.1
10: ip 104.131.157.73
10: ip 10.12.0.5
10: ip 172.17.0.1
10: terminate called after throwing an instance of 'std::length_error'
10: what(): Exceeded upper bound
10: -- run_test.py: return code -6
10: -- run_test.py: generate result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__StaticArrayNested.xml' with failed test
10: -- run_test.py: verify result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__StaticArrayNested.xml'
10/68 Test #10: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__StaticArrayNested ...................***Failed 0.22 sec
test 11
Start 11: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__StaticArrayPrimitives
11: Test command: /usr/bin/python3 "-u" "/home/user/ros2_ws/install/share/ament_cmake_test/cmake/run_test.py" "/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__StaticArrayPrimitives.xml" "--generate-result-on-success" "--env" "RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp" "--append-env" "LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication" "--command" "/home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp" "StaticArrayPrimitives"
11: Test timeout computed to be: 15
11: -- run_test.py: extra environment variables:
11: - RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp
11: -- run_test.py: extra environment variables to append:
11: - LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication
11: -- run_test.py: invoking following command in '/home/user/ros2_ws/src/ros2/system_tests/test_communication':
11: - /home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp StaticArrayPrimitives
11: ip 127.0.0.1
11: ip 104.131.157.73
11: ip 10.12.0.5
11: ip 172.17.0.1
11: ip 127.0.0.1
11: ip 104.131.157.73
11: ip 10.12.0.5
11: ip 172.17.0.1
11: terminate called after throwing an instance of 'std::length_error'
11: what(): Exceeded upper bound
11: -- run_test.py: return code -6
11: -- run_test.py: generate result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__StaticArrayPrimitives.xml' with failed test
11: -- run_test.py: verify result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber_cpp__rmw_fastrtps_cpp__StaticArrayPrimitives.xml'
11/68 Test #11: test_publisher_subscriber_cpp__rmw_fastrtps_cpp__StaticArrayPrimitives ...............***Failed 0.21 sec
test 12
Start 12: test_subscription_valid_data_cpp__rmw_fastrtps_cpp
12: Test command: /usr/bin/python3 "-u" "/home/user/ros2_ws/install/share/ament_cmake_test/cmake/run_test.py" "/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_subscription_valid_data_cpp__rmw_fastrtps_cpp.xml" "--generate-result-on-success" "--env" "RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp" "--append-env" "LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication" "--command" "/home/user/ros2_ws/src/build/test_communication/test_subscription_valid_data_cpp__rmw_fastrtps_cpp"
12: Test timeout computed to be: 15
12: -- run_test.py: extra environment variables:
12: - RCL_ASSERT_RMW_ID_MATCHES=rmw_fastrtps_cpp
12: -- run_test.py: extra environment variables to append:
12: - LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication
12: -- run_test.py: invoking following command in '/home/user/ros2_ws/src/ros2/system_tests/test_communication':
12: - /home/user/ros2_ws/src/build/test_communication/test_subscription_valid_data_cpp__rmw_fastrtps_cpp
12: ip 127.0.0.1
12: ip 104.131.157.73
12: ip 10.12.0.5
12: ip 172.17.0.1
12: ip 127.0.0.1
12: ip 104.131.157.73
12: ip 10.12.0.5
12: ip 172.17.0.1
12: publishing message #1
12: received message #1
12: publishing message #2
12: received message #2
12: publishing message #3
12: received message #3
12: publishing message #4
12: received message #4
12: publishing message #5
12: received message #5
12: published and subscribed for 1.61182 seconds
12: -- run_test.py: return code 0
12: -- run_test.py: generate result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_subscription_valid_data_cpp__rmw_fastrtps_cpp.xml' with successful test
12/68 Test #12: test_subscription_valid_data_cpp__rmw_fastrtps_cpp ................................... Passed 1.80 sec
test 13
Start 13: test_publisher_subscriber__BoundedArrayNested__rclpy__rmw_fastrtps_cpp
13: Test command: /usr/bin/python3 "-u" "/home/user/ros2_ws/install/share/ament_cmake_test/cmake/run_test.py" "/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber__BoundedArrayNested__rclpy__rmw_fastrtps_cpp.xunit.xml" "--output-file" "/home/user/ros2_ws/src/build/test_communication/ament_cmake_nose/test_publisher_subscriber__BoundedArrayNested__rclpy__rmw_fastrtps_cpp.txt" "--append-env" "PYTHONPATH="/home/user/ros2_ws/src/build/test_communication/rosidl_generator_py:/home/user/ros2_ws/src/ros2/system_tests/test_communication:/home/user/ros2_ws/src/build/test_communication/../../rclpy"" "LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication" "--command" "/usr/bin/python3" "/usr/bin/nosetests3" "/home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber__BoundedArrayNested__rclpy__rmw_fastrtps_cpp_.py" "--with-xunit" "--xunit-file=/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber__BoundedArrayNested__rclpy__rmw_fastrtps_cpp.xunit.xml" "--xunit-testsuite-name=test_communication.nosetests"
13: Test timeout computed to be: 15
13: -- run_test.py: extra environment variables to append:
13: - PYTHONPATH="/home/user/ros2_ws/src/build/test_communication/rosidl_generator_py:/home/user/ros2_ws/src/ros2/system_tests/test_communication:/home/user/ros2_ws/src/build/test_communication/../../rclpy"
13: - LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication
13: -- run_test.py: invoking following command in '/home/user/ros2_ws/src/build/test_communication/rosidl_generator_py':
13: - /usr/bin/python3 /usr/bin/nosetests3 /home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber__BoundedArrayNested__rclpy__rmw_fastrtps_cpp_.py --with-xunit --xunit-file=/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber__BoundedArrayNested__rclpy__rmw_fastrtps_cpp.xunit.xml --xunit-testsuite-name=test_communication.nosetests
13: F
13: ======================================================================
13: FAIL: test_publisher_subscriber__BoundedArrayNested__rclpy__rmw_fastrtps_cpp_.test_publisher_subscriber
13: ----------------------------------------------------------------------
13: Traceback (most recent call last):
13: File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest
13: self.test(*self.arg)
13: File "/home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber__BoundedArrayNested__rclpy__rmw_fastrtps_cpp_.py", line 46, in test_publisher_subscriber
13: "The launch file failed with exit code '" + str(rc) + "'. " \
13: AssertionError: The launch file failed with exit code '1'. May be the subscriber did not receive any messages?
13: -------------------- >> begin captured stdout << ---------------------
13: (test_publisher) pid 10928: ['/usr/bin/python3', '/home/user/ros2_ws/src/ros2/system_tests/test_communication/test/publisher_py.py', 'BoundedArrayNested'] (stderr > stdout, all > console)
13: (test_subscriber) pid 10929: ['/usr/bin/python3', '/home/user/ros2_ws/src/ros2/system_tests/test_communication/test/subscriber_py.py', 'BoundedArrayNested'] (stderr > stdout, all > console)
13: [test_publisher] ip 127.0.0.1
13: [test_publisher] ip 104.131.157.73
13: [test_publisher] ip 10.12.0.5
13: [test_publisher] ip 172.17.0.1
13: [test_publisher] ip 127.0.0.1
13: [test_publisher] ip 104.131.157.73
13: [test_publisher] ip 10.12.0.5
13: [test_publisher] ip 172.17.0.1
13: [test_subscriber] ip 127.0.0.1
13: [test_subscriber] ip 104.131.157.73
13: [test_subscriber] ip 10.12.0.5
13: [test_subscriber] ip 172.17.0.1
13: [test_subscriber] ip 127.0.0.1
13: [test_subscriber] ip 104.131.157.73
13: [test_subscriber] ip 10.12.0.5
13: [test_subscriber] ip 172.17.0.1
13: [test_publisher] exception in talker:
13: [test_publisher] Traceback (most recent call last):
13: [test_publisher] File "/home/user/ros2_ws/src/ros2/system_tests/test_communication/test/publisher_py.py", line 68, in <module>
13: [test_publisher] number_of_cycles=args.number_of_cycles)
13: [test_publisher] File "/home/user/ros2_ws/src/ros2/system_tests/test_communication/test/publisher_py.py", line 42, in talker
13: [test_publisher] msg_mod, 'test_message_' + message_name, qos_profile_default)
13: [test_publisher] File "/home/user/ros2_ws/install/lib/python3.5/site-packages/rclpy/node.py", line 50, in create_publisher
13: [test_publisher] raise NoTypeSupportImportedException
13: [test_publisher] rclpy.exceptions.NoTypeSupportImportedException: no type_support imported
13: (test_publisher) rc 1
13: () tear down
13: (test_subscriber) signal SIGINT
13: [test_subscriber] subscriber stopped cleanly
13: (test_subscriber) rc 0
13:
13: --------------------- >> end captured stdout << ----------------------
13: -------------------- >> begin captured logging << --------------------
13: asyncio: DEBUG: Using selector: EpollSelector
13: asyncio: DEBUG: Using selector: EpollSelector
13: --------------------- >> end captured logging << ---------------------
13:
13: ----------------------------------------------------------------------
13: Ran 1 test in 0.197s
13:
13: FAILED (failures=1)
13: -- run_test.py: return code 1
13: -- run_test.py: verify result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber__BoundedArrayNested__rclpy__rmw_fastrtps_cpp.xunit.xml'
13/68 Test #13: test_publisher_subscriber__BoundedArrayNested__rclpy__rmw_fastrtps_cpp ...............***Failed 0.88 sec
test 14
Start 14: test_publisher_subscriber__BoundedArrayPrimitives__rclpy__rmw_fastrtps_cpp
14: Test command: /usr/bin/python3 "-u" "/home/user/ros2_ws/install/share/ament_cmake_test/cmake/run_test.py" "/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber__BoundedArrayPrimitives__rclpy__rmw_fastrtps_cpp.xunit.xml" "--output-file" "/home/user/ros2_ws/src/build/test_communication/ament_cmake_nose/test_publisher_subscriber__BoundedArrayPrimitives__rclpy__rmw_fastrtps_cpp.txt" "--append-env" "PYTHONPATH="/home/user/ros2_ws/src/build/test_communication/rosidl_generator_py:/home/user/ros2_ws/src/ros2/system_tests/test_communication:/home/user/ros2_ws/src/build/test_communication/../../rclpy"" "LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication" "--command" "/usr/bin/python3" "/usr/bin/nosetests3" "/home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber__BoundedArrayPrimitives__rclpy__rmw_fastrtps_cpp_.py" "--with-xunit" "--xunit-file=/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber__BoundedArrayPrimitives__rclpy__rmw_fastrtps_cpp.xunit.xml" "--xunit-testsuite-name=test_communication.nosetests"
14: Test timeout computed to be: 15
14: -- run_test.py: extra environment variables to append:
14: - PYTHONPATH="/home/user/ros2_ws/src/build/test_communication/rosidl_generator_py:/home/user/ros2_ws/src/ros2/system_tests/test_communication:/home/user/ros2_ws/src/build/test_communication/../../rclpy"
14: - LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication
14: -- run_test.py: invoking following command in '/home/user/ros2_ws/src/build/test_communication/rosidl_generator_py':
14: - /usr/bin/python3 /usr/bin/nosetests3 /home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber__BoundedArrayPrimitives__rclpy__rmw_fastrtps_cpp_.py --with-xunit --xunit-file=/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber__BoundedArrayPrimitives__rclpy__rmw_fastrtps_cpp.xunit.xml --xunit-testsuite-name=test_communication.nosetests
14: F
14: ======================================================================
14: FAIL: test_publisher_subscriber__BoundedArrayPrimitives__rclpy__rmw_fastrtps_cpp_.test_publisher_subscriber
14: ----------------------------------------------------------------------
14: Traceback (most recent call last):
14: File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest
14: self.test(*self.arg)
14: File "/home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber__BoundedArrayPrimitives__rclpy__rmw_fastrtps_cpp_.py", line 46, in test_publisher_subscriber
14: "The launch file failed with exit code '" + str(rc) + "'. " \
14: AssertionError: The launch file failed with exit code '1'. May be the subscriber did not receive any messages?
14: -------------------- >> begin captured stdout << ---------------------
14: (test_publisher) pid 10954: ['/usr/bin/python3', '/home/user/ros2_ws/src/ros2/system_tests/test_communication/test/publisher_py.py', 'BoundedArrayPrimitives'] (stderr > stdout, all > console)
14: (test_subscriber) pid 10955: ['/usr/bin/python3', '/home/user/ros2_ws/src/ros2/system_tests/test_communication/test/subscriber_py.py', 'BoundedArrayPrimitives'] (stderr > stdout, all > console)
14: [test_publisher] ip 127.0.0.1
14: [test_publisher] ip 104.131.157.73
14: [test_publisher] ip 10.12.0.5
14: [test_publisher] ip 172.17.0.1
14: [test_subscriber] ip 127.0.0.1
14: [test_subscriber] ip 104.131.157.73
14: [test_subscriber] ip 10.12.0.5
14: [test_subscriber] ip 172.17.0.1
14: [test_publisher] ip 127.0.0.1
14: [test_publisher] ip 104.131.157.73
14: [test_publisher] ip 10.12.0.5
14: [test_publisher] ip 172.17.0.1
14: [test_subscriber] ip 127.0.0.1
14: [test_subscriber] ip 104.131.157.73
14: [test_subscriber] ip 10.12.0.5
14: [test_subscriber] ip 172.17.0.1
14: [test_subscriber] exception in subscriber:
14: [test_subscriber] Traceback (most recent call last):
14: [test_subscriber] File "/home/user/ros2_ws/src/ros2/system_tests/test_communication/test/subscriber_py.py", line 88, in <module>
14: [test_subscriber] listener(message_name=args.message_name)
14: [test_subscriber] File "/home/user/ros2_ws/src/ros2/system_tests/test_communication/test/subscriber_py.py", line 69, in listener
14: [test_subscriber] qos_profile_default)
14: [test_subscriber] File "/home/user/ros2_ws/install/lib/python3.5/site-packages/rclpy/node.py", line 62, in create_subscription
14: [test_subscriber] raise NoTypeSupportImportedException
14: [test_subscriber] rclpy.exceptions.NoTypeSupportImportedException: no type_support imported
14: [test_publisher] exception in talker:
14: [test_publisher] Traceback (most recent call last):
14: [test_publisher] File "/home/user/ros2_ws/src/ros2/system_tests/test_communication/test/publisher_py.py", line 68, in <module>
14: [test_publisher] number_of_cycles=args.number_of_cycles)
14: [test_publisher] File "/home/user/ros2_ws/src/ros2/system_tests/test_communication/test/publisher_py.py", line 42, in talker
14: [test_publisher] msg_mod, 'test_message_' + message_name, qos_profile_default)
14: [test_publisher] File "/home/user/ros2_ws/install/lib/python3.5/site-packages/rclpy/node.py", line 50, in create_publisher
14: [test_publisher] raise NoTypeSupportImportedException
14: [test_publisher] rclpy.exceptions.NoTypeSupportImportedException: no type_support imported
14: (test_subscriber) rc 1
14: () tear down
14: (test_publisher) signal SIGINT
14: (test_publisher) rc -2
14:
14: --------------------- >> end captured stdout << ----------------------
14: -------------------- >> begin captured logging << --------------------
14: asyncio: DEBUG: Using selector: EpollSelector
14: asyncio: DEBUG: Using selector: EpollSelector
14: --------------------- >> end captured logging << ---------------------
14:
14: ----------------------------------------------------------------------
14: Ran 1 test in 0.196s
14:
14: FAILED (failures=1)
14: -- run_test.py: return code 1
14: -- run_test.py: verify result file '/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber__BoundedArrayPrimitives__rclpy__rmw_fastrtps_cpp.xunit.xml'
14/68 Test #14: test_publisher_subscriber__BoundedArrayPrimitives__rclpy__rmw_fastrtps_cpp ...........***Failed 0.87 sec
test 15
Start 15: test_publisher_subscriber__Builtins__rclpy__rmw_fastrtps_cpp
15: Test command: /usr/bin/python3 "-u" "/home/user/ros2_ws/install/share/ament_cmake_test/cmake/run_test.py" "/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber__Builtins__rclpy__rmw_fastrtps_cpp.xunit.xml" "--output-file" "/home/user/ros2_ws/src/build/test_communication/ament_cmake_nose/test_publisher_subscriber__Builtins__rclpy__rmw_fastrtps_cpp.txt" "--append-env" "PYTHONPATH="/home/user/ros2_ws/src/build/test_communication/rosidl_generator_py:/home/user/ros2_ws/src/ros2/system_tests/test_communication:/home/user/ros2_ws/src/build/test_communication/../../rclpy"" "LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication" "--command" "/usr/bin/python3" "/usr/bin/nosetests3" "/home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber__Builtins__rclpy__rmw_fastrtps_cpp_.py" "--with-xunit" "--xunit-file=/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber__Builtins__rclpy__rmw_fastrtps_cpp.xunit.xml" "--xunit-testsuite-name=test_communication.nosetests"
15: Test timeout computed to be: 15
15: -- run_test.py: extra environment variables to append:
15: - PYTHONPATH="/home/user/ros2_ws/src/build/test_communication/rosidl_generator_py:/home/user/ros2_ws/src/ros2/system_tests/test_communication:/home/user/ros2_ws/src/build/test_communication/../../rclpy"
15: - LD_LIBRARY_PATH=/home/user/ros2_ws/src/build/test_communication
15: -- run_test.py: invoking following command in '/home/user/ros2_ws/src/build/test_communication/rosidl_generator_py':
15: - /usr/bin/python3 /usr/bin/nosetests3 /home/user/ros2_ws/src/build/test_communication/test_publisher_subscriber__Builtins__rclpy__rmw_fastrtps_cpp_.py --with-xunit --xunit-file=/home/user/ros2_ws/src/build/test_communication/test_results/test_communication/test_publisher_subscriber__Builtins__rclpy__rmw_fastrtps_cpp.xunit.xml --xunit-testsuite-name=test_communication.nosetests
^CTraceback (most recent call last):
File "/home/user/ros2_ws/install/bin/ament", line 9, in <module>
load_entry_point('ament-tools', 'console_scripts', 'ament')()
File "/home/user/ros2_ws/build/ament_tools/ament_tools/commands/ament.py", line 86, in main
rc = args.main(args)
File "/home/user/ros2_ws/build/ament_tools/ament_tools/verbs/test/cli.py", line 60, in main
build_main(opts, test_pkg_main_wrapper)
File "/home/user/ros2_ws/build/ament_tools/ament_tools/verbs/build/cli.py", line 172, in main
return iterate_packages(opts, packages, per_package_main)
File "/home/user/ros2_ws/build/ament_tools/ament_tools/verbs/build/cli.py", line 297, in iterate_packages
rc = processSequentially(jobs)
File "/home/user/ros2_ws/build/ament_tools/ament_tools/verbs/build/cli.py", line 337, in processSequentially
rc = job['callback'](job['opts'])
File "/home/user/ros2_ws/build/ament_tools/ament_tools/verbs/test/cli.py", line 50, in test_pkg_main_wrapper
rc = test_pkg_main(opts)
File "/home/user/ros2_ws/build/ament_tools/ament_tools/verbs/test_pkg/cli.py", line 77, in main
handle_build_action(on_test_ret, context)
File "/home/user/ros2_ws/build/ament_tools/ament_tools/verbs/build_pkg/cli.py", line 263, in handle_build_action
run_command(build_action, context)
File "/home/user/ros2_ws/build/ament_tools/ament_tools/verbs/build_pkg/cli.py", line 246, in run_command
subprocess.check_call(cmd, shell=True, cwd=cwd, env=build_action.env)
File "/usr/lib/python3.5/subprocess.py", line 576, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python3.5/subprocess.py", line 559, in call
return p.wait(timeout=timeout)
File "/usr/lib/python3.5/subprocess.py", line 1658, in wait
(pid, sts) = self._try_wait(0)
File "/usr/lib/python3.5/subprocess.py", line 1608, in _try_wait
(pid, sts) = os.waitpid(self.pid, wait_flags)
KeyboardInterrupt
Makefile:93: recipe for target 'test' failed
make: *** [test] Interrupt
user@ubuntu-16:~/ros2_ws/src$ exit
exit
Script done on Tue 21 Mar 2017 05:09:52 AM UTC
from system_tests.
@k-okada Sorry for the late reply.
Instead of passing the path to the package to test to ament test
you should call ament test --only <pkgname>
. The first approach will only consider the single package and it is your responsibility to ensure that all dependencies are available and the environment is setup correctly. In the second approach the tool will make sure that all dependencies within this workspace are automatically sourced before running the tests. In both cases you need to make sure that the package in question as well as all dependencies have been built before.
Please comment with more information if the ticket is still relevant or close it if it has been resolved in the meantime.
from system_tests.
The title of this issue is not precise, I want to ask "I dit follow the instruction of beta1 release and try to run ament test, but it fails, Is it expected behavior ? or did I misunderstand something? for example the way to run ament test?"
And it turns out I did correct way to run test, "ament test " was ok. The problem was there is something wrong if we want run RTPS on droplet virtual machine, eProsima/Fast-DDS#77
from system_tests.
Related Issues (20)
- Secure publisher_subscriber tests failing with timeouts HOT 8
- [test_rclcpp] An intraprocess multi-thread executor test hangs because of ring buffer HOT 1
- test_cli_remapping name_maker test failing HOT 5
- 👩🌾 test_publisher_subscriber_serialized__rmw_connext_cpp regression HOT 1
- Windows failure of test_action_client_server with rclcpp client and rclpy server with rmw_cyclonedds_cpp HOT 3
- test_client_scope_cpp can fail with exception HOT 1
- How to run test with my package HOT 1
- test_rclcpp.TestTwoExecutablesAfterShutdown.test_node_name flaky HOT 1
- [test_quality_of_service] test_lifespan__rmw_connext_cpp is flaky HOT 1
- test_cli_remapping is flaky
- Re-enable cross-vendor tests on Windows HOT 1
- [test_quality_of_service] Fails to build due to error [-Werror=maybe-uninitialized] HOT 1
- 👩🌾 test_communication compilation failing nightly coverage builds HOT 2
- Flaky test test_n_nodes__rmw_fastrtps_cpp HOT 1
- :man_farmer: multi_access_publisher_intra_process test failing HOT 5
- :man_farmer: `test_communication` -> `test_subscriber_terminates_in_a_finite_amount_of_time` and `test_processes_finished_gracefully` failing on Windows HOT 3
- :man_farmer: `test_security` -> `test_processes_finished_gracefully` and `test_subscriber_terminates_in_a_finite_amount_of_time` tests failing on nightlies `linux` + `linux-rhel` and windows repeated HOT 2
- `test_quality_of_service` test fails with `rmw_connextdds` HOT 3
- :farmer: `test_cli_remapping` flaky test
- [Test QoS] macOS needs target_link_libraries GTEST_LIBRARIES
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from system_tests.