tests/run-tests.py
changeset 25067 f52c5701925a
parent 25060 29e54fe22a3f
child 25068 f66fc374d2d7
--- a/tests/run-tests.py	Thu May 07 21:00:46 2015 -0700
+++ b/tests/run-tests.py	Fri May 08 00:04:07 2015 -0700
@@ -1662,7 +1662,10 @@
             random.shuffle(tests)
         else:
             # keywords for slow tests
-            slow = b'svn gendoc check-code-hg'.split()
+            slow = {b'svn': 10,
+                    b'gendoc': 10,
+                    b'check-code-hg': 10,
+                   }
             def sortkey(f):
                 # run largest tests first, as they tend to take the longest
                 try:
@@ -1671,9 +1674,9 @@
                     if e.errno != errno.ENOENT:
                         raise
                     return -1e9 # file does not exist, tell early
-                for kw in slow:
+                for kw, mul in slow.iteritems():
                     if kw in f:
-                        val *= 10
+                        val *= mul
                 return val
             tests.sort(key=sortkey)