# HG changeset patch # User simon@laptop-tosh # Date 1370986788 -7200 # Node ID f1a4e67c41fe84dd32b4673c97d35311e17eb0c7 # Parent 4598906608cfef782bf5c0115ceeb5f529cede60 run-tests: sort missing files first instead of raising an error sort first for early telling typos in test names [ original upstream message ] diff -r 4598906608cf -r f1a4e67c41fe tests/run-tests.py --- a/tests/run-tests.py Sun Jun 09 16:49:08 2013 +0200 +++ b/tests/run-tests.py Tue Jun 11 23:39:48 2013 +0200 @@ -1165,7 +1165,12 @@ 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