##// END OF EJS Templates
check-code: add exit status...
Alecs King -
r11816:e1359ad5 default
parent child Browse files
Show More
@@ -7,7 +7,7
7 # This software may be used and distributed according to the terms of the
7 # This software may be used and distributed according to the terms of the
8 # GNU General Public License version 2 or any later version.
8 # GNU General Public License version 2 or any later version.
9
9
10 import re, glob, os
10 import re, glob, os, sys
11 import optparse
11 import optparse
12
12
13 def repquote(m):
13 def repquote(m):
@@ -261,5 +261,8 if __name__ == "__main__":
261 check = args
261 check = args
262
262
263 for f in check:
263 for f in check:
264 checkfile(f, maxerr=options.per_file, warnings=options.warnings,
264 ret = 0
265 blame=options.blame)
265 if not checkfile(f, maxerr=options.per_file, warnings=options.warnings,
266 blame=options.blame):
267 ret = 1
268 sys.exit(ret)
General Comments 0
You need to be logged in to leave comments. Login now