Patchwork [3,of,3,V4] test-run-tests.t: added test for '--time' option with '--job' enabled

login
register
mail settings
Submitter Anurag Goel
Date June 21, 2014, 4:21 p.m.
Message ID <8b70b41c39a268ea8774.1403367707@ubuntu.ubuntu-domain>
Download mbox | patch
Permalink /patch/5034/
State Changes Requested
Headers show

Comments

Anurag Goel - June 21, 2014, 4:21 p.m.
# HG changeset patch
# User anuraggoel <anurag.dsps@gmail.com>
# Date 1403366884 -19800
#      Sat Jun 21 21:38:04 2014 +0530
# Node ID 8b70b41c39a268ea87740961d4f046c10629b326
# Parent  ce69b3b23dbebf1b674f235036e97c78686aac63
test-run-tests.t: added test for '--time' option  with '--job' enabled

Below patch checks the behaviour of '--time' option with '--job' enabled.
Pierre-Yves David - June 23, 2014, 8:48 a.m.
On 06/21/2014 09:21 AM, Anurag Goel wrote:
> # HG changeset patch
> # User anuraggoel <anurag.dsps@gmail.com>
> # Date 1403366884 -19800
> #      Sat Jun 21 21:38:04 2014 +0530
> # Node ID 8b70b41c39a268ea87740961d4f046c10629b326
> # Parent  ce69b3b23dbebf1b674f235036e97c78686aac63
> test-run-tests.t: added test for '--time' option  with '--job' enabled
>
> Below patch checks the behaviour of '--time' option with '--job' enabled.

We are still waiting for a proof that the new --time return proper 
result un the --job case)

>
> diff -r ce69b3b23dbe -r 8b70b41c39a2 tests/test-run-tests.t
> --- a/tests/test-run-tests.t	Sat Jun 21 21:14:55 2014 +0530
> +++ b/tests/test-run-tests.t	Sat Jun 21 21:38:04 2014 +0530
> @@ -211,3 +211,13 @@
>     # Ran 2 tests, 0 skipped, 0 warned, 1 failed.
>     python hash seed: * (glob)
>     [1]
> +
> +test for --time with --job enabled
> +=====================================
> +
> +  $ $TESTDIR/run-tests.py --with-hg=`which hg` test-success.t --time --job 16
> +  .
> +  # Ran 1 tests, 0 skipped, 0 warned, 0 failed.
> +  # Producing time report
> +  cuser   csys    real      Test
> +  [\d.\s]{23} test-success.t (re)
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>

Patch

diff -r ce69b3b23dbe -r 8b70b41c39a2 tests/test-run-tests.t
--- a/tests/test-run-tests.t	Sat Jun 21 21:14:55 2014 +0530
+++ b/tests/test-run-tests.t	Sat Jun 21 21:38:04 2014 +0530
@@ -211,3 +211,13 @@ 
   # Ran 2 tests, 0 skipped, 0 warned, 1 failed.
   python hash seed: * (glob)
   [1]
+
+test for --time with --job enabled
+=====================================
+
+  $ $TESTDIR/run-tests.py --with-hg=`which hg` test-success.t --time --job 16
+  .
+  # Ran 1 tests, 0 skipped, 0 warned, 0 failed.
+  # Producing time report
+  cuser   csys    real      Test
+  [\d.\s]{23} test-success.t (re)