ported to rospkg

This commit is contained in:
Ken Conley 2011-12-29 22:01:49 +00:00
parent d7c117c93f
commit 090ab32cba
1 changed files with 3 additions and 2 deletions

View File

@ -46,7 +46,7 @@ import os
import sys import sys
import cStringIO import cStringIO
import roslib.rospack import rospkg
import rosunit.junitxml as junitxml import rosunit.junitxml as junitxml
def create_summary(result, packages): def create_summary(result, packages):
@ -96,10 +96,11 @@ def main():
parser.error("Only one package may be specified") parser.error("Only one package may be specified")
package = args[0] package = args[0]
r = rospkg.RosPack()
if options.no_deps: if options.no_deps:
packages = [package] packages = [package]
else: else:
packages = [package] + roslib.rospack.rospackexec(['depends-on', package]).split('\n') packages = [package] + r.get_depends_on(package, implicit=True)
packages = [p for p in packages if p] packages = [p for p in packages if p]
result = junitxml.read_all(packages) result = junitxml.read_all(packages)