From 7ffb1b28fb076bf42863e76533ead4eb686e59d1 Mon Sep 17 00:00:00 2001 From: George Karpenkov Date: Tue, 24 Oct 2017 23:52:46 +0000 Subject: [PATCH] [Analyzer] [Tests] Remove temporary fields from generated reference results. Pointer to HTML diagnostics is removed (as it is not stored) as well as the version (as it would be available from the commit message). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316534 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/analyzer/SATestBuild.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/utils/analyzer/SATestBuild.py b/utils/analyzer/SATestBuild.py index c70219cb68..947cb5341a 100755 --- a/utils/analyzer/SATestBuild.py +++ b/utils/analyzer/SATestBuild.py @@ -493,6 +493,14 @@ def normalizeReferenceResults(Dir, SBOutputDir, ProjectBuildMode): if SourceFile.startswith(PathPrefix) else SourceFile for SourceFile in Data['files']] Data['files'] = Paths + + # Remove transient fields which change from run to run. + for Diag in Data['diagnostics']: + if 'HTMLDiagnostics_files' in Diag: + Diag.pop('HTMLDiagnostics_files') + if 'clang_version' in Data: + Data.pop('clang_version') + plistlib.writePlist(Data, Plist) -- 2.40.0