Ejemplo n.º 1
0
 def parse_results(self, log_file=None):
     """Parse subunit raw log file."""
     log_file_raw = log_file or self.log_file_raw
     if os.path.isfile(log_file_raw):
         data = jsonutils.loads(subunit2json.main(log_file_raw))
         return data["total"], data["test_cases"]
     else:
         LOG.error("JSON-log file not found.")
         return None, None
Ejemplo n.º 2
0
 def parse_results(self, log_file=None):
     """Parse subunit raw log file."""
     log_file_raw = log_file or self.log_file_raw
     if os.path.isfile(log_file_raw):
         data = jsonutils.loads(subunit2json.main(log_file_raw))
         return data["total"], data["test_cases"]
     else:
         LOG.error("JSON-log file not found.")
         return None, None