summaryrefslogtreecommitdiffstats
path: root/clang/utils/analyzer/SATestUpdateDiffs.py
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2017-10-26 01:13:22 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2017-10-26 01:13:22 +0000
commit65839bd429acab0cf303501d576a0ba281d7eceb (patch)
treee43b015137fd93a8fe610e45d0673091c11ef24a /clang/utils/analyzer/SATestUpdateDiffs.py
parentf757961c0f79de81d9ae80a3cc64ed7a932a8b5f (diff)
downloadbcm5719-llvm-65839bd429acab0cf303501d576a0ba281d7eceb.tar.gz
bcm5719-llvm-65839bd429acab0cf303501d576a0ba281d7eceb.zip
[Analyzer] [Tests] Consistently use exit codes. Use code=42 to signify different results
llvm-svn: 316632
Diffstat (limited to 'clang/utils/analyzer/SATestUpdateDiffs.py')
-rwxr-xr-xclang/utils/analyzer/SATestUpdateDiffs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/utils/analyzer/SATestUpdateDiffs.py b/clang/utils/analyzer/SATestUpdateDiffs.py
index a60c625245c..c1c3a25cf56 100755
--- a/clang/utils/analyzer/SATestUpdateDiffs.py
+++ b/clang/utils/analyzer/SATestUpdateDiffs.py
@@ -32,7 +32,7 @@ def updateReferenceResults(ProjName, ProjBuildMode):
if not os.path.exists(CreatedResultsPath):
print >> sys.stderr, "New results not found, was SATestBuild.py "\
"previously run?"
- sys.exit(-1)
+ sys.exit(1)
# Remove reference results: in git, and then again for a good measure
# with rm, as git might not remove things fully if there are empty
@@ -75,7 +75,7 @@ def main(argv):
print >> sys.stderr, "Update static analyzer reference results based "\
"\non the previous run of SATestBuild.py.\n"\
"\nN.B.: Assumes that SATestBuild.py was just run"
- sys.exit(-1)
+ sys.exit(1)
with SATestBuild.projectFileHandler() as f:
for (ProjName, ProjBuildMode) in SATestBuild.iterateOverProjects(f):
OpenPOWER on IntegriCloud