[PATCH] test-logtoprocess: fix the regular expression
Jun Wu
quark at fb.com
Thu Feb 16 17:14:52 UTC 2017
# 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
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)
More information about the Mercurial-devel
mailing list