3 from __future__
import print_function
11 PKGNAME =
"moveit_ros_planning_interface"
12 NODENAME =
"moveit_cleanup_tests"
21 super(CleanupTest, self).
__init__(*args, **kwargs)
22 self.
_rospack_rospack = rospkg.RosPack()
27 if subprocess.call(cmd) != 0:
29 self.assertEqual(failures, 0,
"%d of %d runs failed" % (failures, num))
33 roslib.packages.find_node(PKGNAME,
"test_cleanup.py", self.
_rospack_rospack)
37 self.
run_cmdrun_cmd(roslib.packages.find_node(PKGNAME,
"test_cleanup", self.
_rospack_rospack))
40 if __name__ ==
"__main__":
41 rostest.rosrun(PKGNAME, NODENAME, CleanupTest)
def __init__(self, *args, **kwargs)
def run_cmd(self, cmd, num=5)