[PATCH] test-logtoprocess: fix the regular expression

Augie Fackler raf at durin42.com
Thu Feb 16 12:18:56 EST 2017


On Thu, Feb 16, 2017 at 09:14:52AM -0800, Jun Wu wrote:
> # HG changeset patch
> # User Jun Wu <quark at fb.com>
> # Date 1487265078 28800
> #      Thu Feb 16 09:11:18 2017 -0800
> # Node ID ea77104f008e26351dde0b168432b8d903c4f240
> # Parent  677049d4e7cadc6acfc557ef1ee8acf783c76e1d
> # Available At https://bitbucket.org/quark-zju/hg-draft
> #              hg pull https://bitbucket.org/quark-zju/hg-draft -r ea77104f008e
> test-logtoprocess: fix the regular expression

You still have two problems!

(queued, many thanks for the fix)

>
> Previously, the test fails if the block time is >= 10 ms, like:
>
>   -  uiblocked stdio [0-9]+.[0-9]* ms command [0-9]+.[0-9]* ms (re)
>   +  uiblocked stdio 0.0100135803223 ms command 23.8537788391 ms
>
> This patch fixes the regular expression so the dot will be matched
> correctly.
>
> diff --git a/tests/test-logtoprocess.t b/tests/test-logtoprocess.t
> --- a/tests/test-logtoprocess.t
> +++ b/tests/test-logtoprocess.t
> @@ -68,3 +68,3 @@ Confirm that logging blocked time catche
>
>    $ hg log
> -  uiblocked stdio [0-9]+.[0-9]* ms command [0-9]+.[0-9]* ms (re)
> +  uiblocked stdio [0-9]+\.[0-9]* ms command [0-9]+\.[0-9]* ms (re)
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list