[PATCH] run-tests: write maximum number of tests to run before starting

Matt Mackall mpm at selenic.com
Wed Nov 9 13:33:18 CST 2011


On Mon, 2011-11-07 at 08:19 +0100, Simon Heimberg wrote:
> # HG changeset patch
> # User Simon Heimberg <simohe at besonet.ch>
> # Date 1316292250 -7200
> # Node ID 380d6521c57a565ca9496621efc4087c1b3d2a78
> # Parent  03e9dbd7e9d0aee38afb566c15b3a8e55e1c3938
> run-tests: write maximum number of tests to run before starting

Ok, why do I want this?

(Actually, I'm pretty sure I don't as I often run the test suite split
among multiple hosts and I just want a bunch of dots.)

> diff -r 03e9dbd7e9d0 -r 380d6521c57a tests/run-tests.py
> --- a/tests/run-tests.py	Fre Nov 04 10:39:04 2011 +0100
> +++ b/tests/run-tests.py	Sam Sep 17 22:44:10 2011 +0200
> @@ -1007,6 +1007,7 @@
>  
>      tests.reverse()
>      jobs = [[] for j in xrange(options.jobs)]
> +    print "# Will run at most %d tests" % len(tests)
>      while tests:
>          for job in jobs:
>              if not tests:
> @@ -1100,6 +1101,9 @@
>                  print "running all tests"
>                  tests = orig
>  
> +        if not options.child:
> +            print "# Will run at most %d tests" % len(tests)
> +
>          runqueue(options, tests, results)
>  
>          failed = len(results['f'])
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel


-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list