start-jsk / rtmros_hironx

hironx controller and applications using rtmros packages
http://wiki.ros.org/rtmros_hironx
10 stars 27 forks source link

[hironx_ros_bridge] Add test to disable/enable RTCs from conf #537

Closed pazeshun closed 4 years ago

pazeshun commented 4 years ago

Depends on #536 Test part of #535 Travis test of this PR should fail.

pazeshun commented 4 years ago

Travis test correctly failed:

=== /home/travis/ros/ws_rtmros_hironx/build/test_results/hironx_ros_bridge/rosunit-test_hironx_rtc_on_off.xml ===

<?xml version="1.0" encoding="utf-8"?>

<testsuite errors="0" failures="1" name="unittest.suite.TestSuite" tests="1" time="1.628">

  <testcase classname="__main__.TestHironxRtcOnOff" name="test_rtc_on_off" time="0.0020">

    <failure type="AssertionError">

  File "/usr/lib/python2.7/unittest/case.py", line 331, in run

    testMethod()

  File "/home/travis/ros/ws_rtmros_hironx/src/rtmros_hironx/hironx_ros_bridge/test/test_hironx_rtc_on_off.py", line 9, in test_rtc_on_off

    self.assertTrue(['co', "CollisionDetector"] in self.robot.getRTCList())

  File "/home/travis/build/start-jsk/rtmros_hironx/hironx_ros_bridge/test/test_hironx.py", line 227, in assertTrue

    assert(a)

    </failure>

  </testcase>

(from ROS_DISTRO=indigo ROSWS=wstool BUILDER=catkin USE_DEB=true ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu)