()
| 97 | |
| 98 | |
| 99 | def check_diff_applied_status(): |
| 100 | status = {} |
| 101 | for diff_file in PATCH_DEST_DIR.glob("*.diff"): |
| 102 | dst_name = diff_file.stem |
| 103 | target_file = TOOLCHAIN_DIR / dst_name |
| 104 | checksum_file = PATCH_DEST_DIR / f"{dst_name}.sha256" |
| 105 | if not checksum_file.exists(): |
| 106 | status[dst_name] = False |
| 107 | continue |
| 108 | expected_hash = checksum_file.read_text().splitlines()[-1].split("after: ")[-1] |
| 109 | status[dst_name] = is_diff_applied(target_file, expected_hash) |
| 110 | return status |
| 111 | |
| 112 | |
| 113 | def prepare_executable(original_nso: Optional[Path]): |
no test coverage detected