brintos

brintos / llvm-project-archived public Read only

0
0
Text · 808 B · 18c5e07 Raw
26 lines · python
1# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.2# See https://llvm.org/LICENSE.txt for license information.3# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception4"""Script to generate a build report for Github."""5 6import argparse7 8import generate_test_report_lib9 10 11if __name__ == "__main__":12    parser = argparse.ArgumentParser()13    parser.add_argument("return_code", help="The build's return code.", type=int)14    parser.add_argument(15        "build_test_logs", help="Paths to JUnit report files and ninja logs.", nargs="*"16    )17    args = parser.parse_args()18 19    report = generate_test_report_lib.generate_report_from_files(20        generate_test_report_lib.compute_platform_title(),21        args.return_code,22        args.build_test_logs,23    )24 25    print(report)26