[all-commits] [llvm/llvm-project] 0ad4f2: [analyzer] SATest: Weaken assumption about HTML files

Marco Antognini via All-commits all-commits at lists.llvm.org
Mon Jun 20 00:46:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0ad4f29b545d849820f0025736c9559c5c439032
      https://github.com/llvm/llvm-project/commit/0ad4f29b545d849820f0025736c9559c5c439032
  Author: Marco Antognini <marco.antognini at sonarsource.com>
  Date:   2022-06-20 (Mon, 20 Jun 2022)

  Changed paths:
    M clang/utils/analyzer/CmpRuns.py

  Log Message:
  -----------
  [analyzer] SATest: Weaken assumption about HTML files

Instead of assuming there is an HTML file for each diagnostics, consider
the HTML files only when they exist, individually of each other.

After generating the reference data, running

  python /scripts/SATest.py build --projects simbody

was resulting in this error:

    File "/scripts/CmpRuns.py", line 250, in read_single_file
      assert len(d['HTMLDiagnostics_files']) == 1
  KeyError: 'HTMLDiagnostics_files'

Reviewed By: steakhal

Differential Revision: https://reviews.llvm.org/D126197




More information about the All-commits mailing list