diff --git a/core/roslib/bin/rostest-results b/core/roslib/bin/rostest-results index 6b92988b..0e378cc4 100755 --- a/core/roslib/bin/rostest-results +++ b/core/roslib/bin/rostest-results @@ -35,12 +35,19 @@ ## script that prints summary of aggregated test results to console -import roslib; roslib.load_manifest('rostest') +import roslib; import sys import cStringIO import os +try: + roslib.load_manifest('rostest') +except roslib.packages.InvalidROSPkgException, ex: + print("ERROR: rostest not detected") + sys.exit(0) + + import roslib.rospack import rostest.xmlresults as xmlr