[analyzer] [tests] Style fixes for testing harness.
llvm-svn: 338322
diff --git a/clang/utils/analyzer/CmpRuns.py b/clang/utils/analyzer/CmpRuns.py
index 1b8fe7b..1c44f5c 100755
--- a/clang/utils/analyzer/CmpRuns.py
+++ b/clang/utils/analyzer/CmpRuns.py
@@ -312,11 +312,11 @@
# Only apply highlighting when writing to TTY and it's not Windows
if sys.stdout.isatty() and os.name != 'nt':
if valB != 0:
- ratio = (valB - valA) / valB
- if ratio < -0.2:
- report = Colors.GREEN + report + Colors.CLEAR
- elif ratio > 0.2:
- report = Colors.RED + report + Colors.CLEAR
+ ratio = (valB - valA) / valB
+ if ratio < -0.2:
+ report = Colors.GREEN + report + Colors.CLEAR
+ elif ratio > 0.2:
+ report = Colors.RED + report + Colors.CLEAR
print "\t %s %s" % (kkey, report)
def dumpScanBuildResultsDiff(dirA, dirB, opts, deleteEmpty=True,
diff --git a/clang/utils/analyzer/SATestBuild.py b/clang/utils/analyzer/SATestBuild.py
index 4da025a..ea95ee2 100755
--- a/clang/utils/analyzer/SATestBuild.py
+++ b/clang/utils/analyzer/SATestBuild.py
@@ -60,9 +60,9 @@
import time
import Queue
-#------------------------------------------------------------------------------
+###############################################################################
# Helper functions.
-#------------------------------------------------------------------------------
+###############################################################################
Local = threading.local()
Local.stdout = sys.stdout
@@ -91,9 +91,9 @@
ProjectMapPath = os.path.join(os.path.abspath(os.curdir),
ProjectMapFile)
if not os.path.exists(ProjectMapPath):
- Local.stdout.write("Error: Cannot find the Project Map file "
- + ProjectMapPath
- + "\nRunning script for the wrong directory?\n")
+ Local.stdout.write("Error: Cannot find the Project Map file " +
+ ProjectMapPath +
+ "\nRunning script for the wrong directory?\n")
sys.exit(1)
return ProjectMapPath
@@ -108,9 +108,9 @@
else:
return SBOutputDirName
-#------------------------------------------------------------------------------
+###############################################################################
# Configuration setup.
-#------------------------------------------------------------------------------
+###############################################################################
# Find Clang for static analysis.
@@ -185,9 +185,9 @@
Verbose = 0
-#------------------------------------------------------------------------------
+###############################################################################
# Test harness logic.
-#------------------------------------------------------------------------------
+###############################################################################
def runCleanupScript(Dir, PBuildLogFile):