[PATCH 2 of 2] run-test.py: greatly increase the priority of 'check-code' tests
Augie Fackler
raf at durin42.com
Tue May 12 17:50:11 UTC 2015
On Sat, May 09, 2015 at 02:25:21PM -0700, Pierre-Yves David wrote:
> # 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
I've queued these, thanks.
>
> 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
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
More information about the Mercurial-devel
mailing list