ros-infrastructure / rosdep

rosdep multi-package manager system dependency tool
http://ros.org/wiki/rosdep
BSD 3-Clause "New" or "Revised" License
77 stars 170 forks source link

Test for issue #30 fails if not in a ROS environment #37

Open wjwwood opened 12 years ago

wjwwood commented 12 years ago

When running the tests for rosdep I get this:

======================================================================
ERROR: testIssue30 (test.test_rosdep_issue30.Issue30TestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/william/devel/rosdep/test/test_rosdep_issue30.py", line 28, in testIssue30
    keys = rdmain.get_keys(lookup, ['spacenav_node'], recursive=True)
  File "/Users/william/devel/rosdep/src/rosdep2/main.py", line 364, in get_keys
    deps = lookup.get_rosdeps(package_name, implicit=recursive)
  File "/Users/william/devel/rosdep/src/rosdep2/lookup.py", line 250, in get_rosdeps
    return self.loader.get_rosdeps(resource_name, implicit=implicit)
  File "/Users/william/devel/rosdep/src/rosdep2/rospkg_loader.py", line 140, in get_rosdeps
    raise rospkg.ResourceNotFound(resource_name)
ResourceNotFound: spacenav_node

This is most likely because I am not in a ROS environment. It seems like some assumptions were made in order to do this test which don't hold everywhere (like my mac book in a clean terminal and on the CI server). Also depending on a particular git repository controlled by someone else to not change is probably fragile, maybe we should tar that git repo up and extract it for the tests.

wjwwood commented 12 years ago

I disabled the test until you can fix it so that I can get the CI going.