| Index: tools/presubmit.py
|
| diff --git a/tools/presubmit.py b/tools/presubmit.py
|
| index a5f4c614d04a800c816991bdc6a00f27101aa5f1..4d7ff6a5db38d850ce364e6332b0b568bbfb7b41 100755
|
| --- a/tools/presubmit.py
|
| +++ b/tools/presubmit.py
|
| @@ -363,6 +363,11 @@ def GetOptions():
|
| action="store_true")
|
| return result
|
|
|
| +def CheckStaticInitializers(workspace):
|
| + if os.name != "posix":
|
| + return True # Non-POSIX not supported yet.
|
| + return subprocess.call(
|
| + [ workspace + "/tools/check-static-initializers.sh" ]) == 0
|
|
|
| def Main():
|
| workspace = abspath(join(dirname(sys.argv[0]), '..'))
|
| @@ -374,6 +379,8 @@ def Main():
|
| success = CppLintProcessor().Run(workspace) and success
|
| print "Running copyright header and trailing whitespaces check..."
|
| success = SourceProcessor().Run(workspace) and success
|
| + print "Running static initializers check..."
|
| + success = CheckStaticInitializers(workspace) and success
|
| if success:
|
| return 0
|
| else:
|
|
|