##// END OF EJS Templates
run-tests: sort missing files first instead of raising an error...
simon@laptop-tosh -
r19315:401b3ad2 default
parent child Browse files
Show More
@@ -1165,7 +1165,12 b' def main():'
1165 1165 slow = 'svn gendoc check-code-hg'.split()
1166 1166 def sortkey(f):
1167 1167 # run largest tests first, as they tend to take the longest
1168 val = -os.stat(f).st_size
1168 try:
1169 val = -os.stat(f).st_size
1170 except OSError, e:
1171 if e.errno != errno.ENOENT:
1172 raise
1173 return -1e9 # file does not exist, tell early
1169 1174 for kw in slow:
1170 1175 if kw in f:
1171 1176 val *= 10
General Comments 0
You need to be logged in to leave comments. Login now