mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01:00
This reverts commit c9c4f8efc3.
Reverted https://github.com/pytorch/pytorch/pull/105227 on behalf of https://github.com/atalman due to trying to mitigate ci sev #105248 ([comment](https://github.com/pytorch/pytorch/pull/105227#issuecomment-1636510935))
25 lines
750 B
Python
25 lines
750 B
Python
#!/usr/bin/env python3
|
|
import time
|
|
|
|
from package.oss.cov_json import get_json_report
|
|
from package.oss.init import initialization
|
|
from package.tool.summarize_jsons import summarize_jsons
|
|
from package.util.setting import TestPlatform
|
|
from package.util.utils import print_time
|
|
|
|
|
|
def report_coverage() -> None:
|
|
start_time = time.time()
|
|
(options, test_list, interested_folders) = initialization()
|
|
# run cpp tests
|
|
get_json_report(test_list, options)
|
|
# collect coverage data from json profiles
|
|
if options.need_summary:
|
|
summarize_jsons(test_list, interested_folders, [""], TestPlatform.OSS)
|
|
# print program running time
|
|
print_time("Program Total Time: ", start_time)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
report_coverage()
|