[PATCH 2 of 2] run-test.py: greatly increase the priority of 'check-code' tests
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Sat May 9 16:25:21 CDT 2015
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1431122407 25200
# Fri May 08 15:00:07 2015 -0700
# Node ID 84f5cc3f45ff61976febe3f7e655b9c65065e3c8
# Parent 48e50507613c2431153722786b539b5d6e488dad
run-test.py: greatly increase the priority of 'check-code' tests
As check-code is actually quite long to run for its file size, this prevent them
to be scheduled too late during the test run.
This reduces my typical test run from 107 seconds to 90 seconds
diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -1623,11 +1623,11 @@ class TestRunner(object):
random.shuffle(tests)
else:
# keywords for slow tests
slow = {'svn': 10,
'gendoc': 10,
- 'check-code-hg': 10,
+ 'check-code-hg': 100,
}
def sortkey(f):
# run largest tests first, as they tend to take the longest
try:
val = -os.stat(f).st_size
More information about the Mercurial-devel
mailing list