Skip to content

alternative fix for joystick unittest - #149

Merged
davetcoleman merged 1 commit into
moveit:kinetic-develfrom
rhaschke:kinetic-devel
Aug 25, 2016
Merged

davetcoleman merged 1 commit into
moveit:kinetic-develfrom
rhaschke:kinetic-devel

Conversation

@rhaschke

@rhaschke rhaschke commented Aug 24, 2016 •

Copy link
Copy Markdown
Contributor

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.

@130s

130s commented Aug 24, 2016

Copy link
Copy Markdown
Contributor

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))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for using assertRaises, which seems to be the right way to check if exceptions are raised.

@davetcoleman

Copy link
Copy Markdown
Member

Awesome, thanks!

@davetcoleman
davetcoleman merged commit 83e7b4b into moveit:kinetic-devel Aug 25, 2016
davetcoleman pushed a commit that referenced this pull request Aug 25, 2016
davetcoleman pushed a commit to davetcoleman/moveit that referenced this pull request Aug 25, 2016
@davetcoleman

Copy link
Copy Markdown
Member

cherry-picked to Jade, had conflicts so created PR for indigo

rhaschke pushed a commit that referenced this pull request Aug 25, 2016
* Alternative fix for joystick unittest (#149)
  This reverts commit f254737.
* cleanup cmake tests - mimmick #152
@rhaschke

Copy link
Copy Markdown
Contributor Author

Argh! Still doesn't work on ROS buildfarm. Obviously the test isn't actually run (TESTS: 0):

22:16:13 SUMMARY
22:16:13 RESULT: SUCCESS
22:16:13  * TESTS: 0
22:16:13  * ERRORS: 0
22:16:13  * FAILURES: 0

This leaves an empty test result file, which makes ROS buildfarm, but not Travis complain. Need to look even deeper into this.

@rhaschke rhaschke mentioned this pull request Aug 25, 2016
@davetcoleman

Copy link
Copy Markdown
Member

This leaves an empty test result file, which makes ROS buildfarm, but not Travis complain.

Sounds like we need to fix Travis to also complain - do you know what needs to be checked?

@rhaschke

Copy link
Copy Markdown
Contributor Author

This leaves an empty test result file, which makes ROS buildfarm, but not Travis complain.

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.
@dirk-thomas Can you help: Is that script available for Travis too?

@dirk-thomas

Copy link
Copy Markdown
Contributor

The build farm uses the Jenkins xUnit plugin to collect the results from the generated result files catkin_workspace/test_results/**/*.xml. I don't know if a similar functionality exists for being used on the command line in Travis.

JafarAbdi added a commit to JafarAbdi/moveit that referenced this pull request Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants