@nottest
def get_run_tests():
 test_suite = None
 msg_fmt = 'Reading %s run tests from: "%s"'
 for fname in os.listdir(ARTIFACT_DIR):
  if (fname.startswith(NOSE_OUTPUT_PREFIX) and fname.endswith(NOSE_XUNIT_EXT)):
   path_fname = os.path.join(ARTIFACT_DIR, fname)
   try:
    (curr_test_suite, test_result) = parse_xunit(path_fname)
   except ElementTree.ParseError:
    logging.warning(('"%s" is an invalid XML file.' % fname))
    continue
   logging.debug((msg_fmt % (test_result.testsRun, fname)))
   if (test_suite is None):
    test_suite = curr_test_suite
   else:
    for test in curr_test_suite:
     test_suite.addTest(test)
 normalize_test_names(test_suite)
 run_str = '\n'.join(sorted([t.id() for t in test_suite._tests]))
 logging.debug(('Run %s tests.' % len(test_suite._tests)))
 logging.debug(('The following tests were run:\n%s' % run_str))
 return test_suite

@ nottest def get_run_tests ( ) : test_suite = None msg_fmt = 'Reading %s run tests from: "%s"' for fname in os . listdir ( ARTIFACT_DIR ) : if ( fname . startswith ( NOSE_OUTPUT_PREFIX ) and fname . endswith ( NOSE_XUNIT_EXT ) ) : path_fname = os . path . join ( ARTIFACT_DIR , fname ) try : ( curr_test_suite , test_result ) = parse_xunit ( path_fname ) except ElementTree . ParseError : logging . warning ( ( '"%s" is an invalid XML file.' % fname ) ) continue logging . debug ( ( msg_fmt % ( test_result . testsRun , fname ) ) ) if ( test_suite is None ) : test_suite = curr_test_suite else : for test in curr_test_suite : test_suite . addTest ( test ) normalize_test_names ( test_suite ) run_str = '\n' . join ( sorted ( [ t . id ( ) for t in test_suite . _tests ] ) ) logging . debug ( ( 'Run %s tests.' % len ( test_suite . _tests ) ) ) logging . debug ( ( 'The following tests were run:\n%s' % run_str ) ) return test_suite
merge all the information from the command outputs into one consolidated test suite which contains all tests which were run .