Repository navigation
alternative fix for joystick unittest - #149
Conversation
This reverts commit f254737.
|
Thanks for restoring back the test so quickly! Looking at travis result, no test regarding joy seems to have been run. I'm not yet sure why... |
| exception_raised = True | ||
| self.assertTrue(exception_raised) | ||
| # Passng 0 to MoveitJoy.updatePlanningGroup should raise an exception. | ||
| self.assertRaises(rospy.ROSInitException, self.moveit_joy.updatePlanningGroup(0)) |
There was a problem hiding this comment.
+1 for using assertRaises, which seems to be the right way to check if exceptions are raised.
|
Awesome, thanks! |
This reverts commit f254737.
This reverts commit f254737.
|
cherry-picked to Jade, had conflicts so created PR for indigo |
|
Argh! Still doesn't work on ROS buildfarm. Obviously the test isn't actually run (TESTS: 0): This leaves an empty test result file, which makes ROS buildfarm, but not Travis complain. Need to look even deeper into this. |
Sounds like we need to fix Travis to also complain - do you know what needs to be checked? |
ROS buildfarm seems to run some xUnit scripts evaluating and summarizing test results. |
|
The build farm uses the Jenkins xUnit plugin to collect the results from the generated result files |
Instead of disabling the joystick unittest, I suggest to exit python without performing usual cleanup routines as proposed in #105.
This reverts commit f254737 / #143.
Should be cherry-picked to I/J again.