def _recursively_list_test_suites(suite):
    """
    Recursively parses a test suite tree returns the names of test suites that contain tests that were executed
    """
    ret_val = []
    if suite.tests:
        ret_val.append(suite.name)

    for sub_suite in suite.suites:
        ret_val.extend(_recursively_list_test_suites(sub_suite))
    return ret_val