INNER CODE UNIT · Python

bazel_path

uxlfoundation/oneDAL · dev/release_tests/compare_release_trees.py:521

        bazel_path = bazel_root / path
        if path in NORMALIZED_TEXT_LINES:
            equal = read_normalized_text(make_root, path) == read_normalized_text(bazel_root, path)
        else:
            equal = filecmp.cmp(make_path, bazel_path, shallow=False)
        if not equal:
            mismatches.append(path)

    if mismatches:
        errors += len(mismatches)
        print(f"Text content mismatches: {len(mismatches)}")
        for item in mismatches[:limit]:
            print(f"  ! {item} {describe_text_mismatch(make_root, bazel_root, item)}")
            for line in text_mismatch_diff(make_root, bazel_root, item):
                print(f"      {line}")
    print(f"Compared text files: {compared}")
    return errors

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…