Parse a given path to load fuzzgen report. :return: returns dictionary whose key is driver name and value for its main UT source path.
(self)
| 82 | return {path.name: path for path in driver_paths} |
| 83 | |
| 84 | def load_gen_report(self) -> dict: |
| 85 | """ |
| 86 | Parse a given path to load fuzzgen report. |
| 87 | |
| 88 | :return: returns dictionary whose key is driver name and value for its |
| 89 | main UT source path. |
| 90 | """ |
| 91 | report_path = self.basedir / "fuzzGen_Report.json" |
| 92 | |
| 93 | with open(report_path) as f: |
| 94 | data = json.load(f) |
| 95 | |
| 96 | report = { |
| 97 | ut_info["Name"]: Path(ut_info["FuzzTestSrc"]) |
| 98 | for ut_info in data["UT"] |
| 99 | } |
| 100 | return report |