# HG changeset patch # User simon@laptop-tosh # Date 2013-06-11 21:39:48 # Node ID 401b3ad26e66f6b69937e1aa808da07065c408a6 # Parent bc82abe500a90ad056cd9fd4fabdd84a4a5a2ebf run-tests: sort missing files first instead of raising an error sort first for early telling typos in test names diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1165,7 +1165,12 @@ def main(): slow = 'svn gendoc check-code-hg'.split() def sortkey(f): # run largest tests first, as they tend to take the longest - val = -os.stat(f).st_size + try: + val = -os.stat(f).st_size + except OSError, e: + if e.errno != errno.ENOENT: + raise + return -1e9 # file does not exist, tell early for kw in slow: if kw in f: val *= 10