Exemplo n.º 1
0
def main():
    options = parse_args()
    out = subprocess.Popen(options.testtool,stdout=subprocess.PIPE).stdout
    table = Table()
    reporter = ReportToTable()
    reporter.process_xml(out,table)
    output = None
    if options.output == '/dev/stdout':
        output = sys.stdout
    else:
        output = open(options.output,'w')
    table.to_format(options.format,output)