diff options
Diffstat (limited to 'utils/analyzer/SATestBuild.py')
-rwxr-xr-x | utils/analyzer/SATestBuild.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/utils/analyzer/SATestBuild.py b/utils/analyzer/SATestBuild.py index e119155a9b..eb7796431a 100755 --- a/utils/analyzer/SATestBuild.py +++ b/utils/analyzer/SATestBuild.py @@ -208,6 +208,9 @@ def runScanBuild(Dir, SBOutputDir, PBuildLogFile): SBOptions += "-plist-html -o " + SBOutputDir + " " SBOptions += "-enable-checker " + Checkers + " " SBOptions += "--keep-empty " + # Always use ccc-analyze to ensure that we can locate the failures + # directory. + SBOptions += "--override-compiler " try: SBCommandFile = open(BuildScriptPath, "r") SBPrefix = "scan-build " + SBOptions + " " @@ -410,8 +413,10 @@ def runCmpResults(Dir): RefList = glob.glob(RefDir + "/*") NewList = glob.glob(NewDir + "/*") - # Log folders are also located in the results dir, so ignore them. - RefList.remove(os.path.join(RefDir, LogFolderName)) + # Log folders are also located in the results dir, so ignore them. + RefLogDir = os.path.join(RefDir, LogFolderName) + if RefLogDir in RefList: + RefList.remove(RefLogDir) NewList.remove(os.path.join(NewDir, LogFolderName)) if len(RefList) == 0 or len(NewList) == 0: |