summaryrefslogtreecommitdiffstats
path: root/clang/utils/analyzer/SATestUpdateDiffs.py
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2017-10-30 19:40:33 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2017-10-30 19:40:33 +0000
commit3c128cb1e65b6419ab21a8cf9a948d84ce406e42 (patch)
treee82d001d5c33247a4935d2c6c1c2c3d7d733620e /clang/utils/analyzer/SATestUpdateDiffs.py
parent017f896adb9d41702d0727e7e008917a8a8d5bc3 (diff)
downloadbcm5719-llvm-3c128cb1e65b6419ab21a8cf9a948d84ce406e42.tar.gz
bcm5719-llvm-3c128cb1e65b6419ab21a8cf9a948d84ce406e42.zip
[analyzer] [tests] Remove empty folders in reference results, do not store diffs.txt
Storing diffs.txt is now redundant, as we simply dump the CmpRuns output to stdout (it is saved in CI and tends to be small). Not generating those files enables us to remove empty folders, which confuse git, as it would not add them with reference results. llvm-svn: 316948
Diffstat (limited to 'clang/utils/analyzer/SATestUpdateDiffs.py')
-rwxr-xr-xclang/utils/analyzer/SATestUpdateDiffs.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/clang/utils/analyzer/SATestUpdateDiffs.py b/clang/utils/analyzer/SATestUpdateDiffs.py
index c1c3a25cf56..2282af15a52 100755
--- a/clang/utils/analyzer/SATestUpdateDiffs.py
+++ b/clang/utils/analyzer/SATestUpdateDiffs.py
@@ -54,22 +54,9 @@ def updateReferenceResults(ProjName, ProjBuildMode):
# Clean up the generated difference results.
SATestBuild.cleanupReferenceResults(RefResultsPath)
- # Remove the created .diffs file before adding.
- removeDiffsSummaryFiles(RefResultsPath)
-
runCmd('git add "%s"' % (RefResultsPath,))
-def removeDiffsSummaryFiles(RefResultsPath):
- """
- Remove all auto-generated .diffs files in reference data.
- """
- for (Dirpath, Dirnames, Filenames) in os.walk(RefResultsPath):
- if SATestBuild.DiffsSummaryFileName in Filenames:
- runCmd("rm '%s'" % os.path.join(
- Dirpath, SATestBuild.DiffsSummaryFileName))
-
-
def main(argv):
if len(argv) == 2 and argv[1] in ('-h', '--help'):
print >> sys.stderr, "Update static analyzer reference results based "\
OpenPOWER on IntegriCloud