##// END OF EJS Templates
run-tests: sort certain slow tests earlier by keyword...
Matt Mackall -
r19281:0a5e1900 default
parent child Browse files
Show More
@@ -1162,8 +1162,16 b' def main():'
1162 1162 if options.random:
1163 1163 random.shuffle(tests)
1164 1164 else:
1165 # run largest tests first, as they tend to take the longest
1166 tests.sort(key=lambda x: -os.stat(x).st_size)
1165 # keywords for slow tests
1166 slow = 'svn gendoc check-code-hg'.split()
1167 def sortkey(f):
1168 # run largest tests first, as they tend to take the longest
1169 val = -os.stat(f).st_size
1170 for kw in slow:
1171 if kw in f:
1172 val *= 10
1173 return val
1174 tests.sort(key=sortkey)
1167 1175
1168 1176 if 'PYTHONHASHSEED' not in os.environ:
1169 1177 # use a random python hash seed all the time
General Comments 0
You need to be logged in to leave comments. Login now