def read_all(filter_=[]):
 dir_ = rospkg.get_test_results_dir()
 root_result = Result('ros', 0, 0, 0)
 if (not os.path.exists(dir_)):
  return root_result
 for d in os.listdir(dir_):
  if (filter_ and (not (d in filter_))):
   continue
  subdir = os.path.join(dir_, d)
  if os.path.isdir(subdir):
   for filename in os.listdir(subdir):
    if filename.endswith('.xml'):
     filename = os.path.join(subdir, filename)
     result = read(filename, os.path.basename(subdir))
     root_result.accumulate(result)
 return root_result

def read_all ( filter_ = [ ] ) : dir_ = rospkg . get_test_results_dir ( ) root_result = Result ( 'ros' , 0 , 0 , 0 ) if ( not os . path . exists ( dir_ ) ) : return root_result for d in os . listdir ( dir_ ) : if ( filter_ and ( not ( d in filter_ ) ) ) : continue subdir = os . path . join ( dir_ , d ) if os . path . isdir ( subdir ) : for filename in os . listdir ( subdir ) : if filename . endswith ( '.xml' ) : filename = os . path . join ( subdir , filename ) result = read ( filename , os . path . basename ( subdir ) ) root_result . accumulate ( result ) return root_result
a view that is requested with accesses request .