[Updated] D11716: tests: better determinism in test-chg.t

aalekseyev (Arseniy Alekseyev) phabricator at mercurial-scm.org
Thu Oct 21 12:19:11 UTC 2021


Closed by commit rHG1ea289e34c70: tests: better determinism in test-chg.t (authored by aalekseyev).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11716?vs=30968&id=30970

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11716/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11716

AFFECTED FILES
  tests/test-chg.t

CHANGE DETAILS

diff --git a/tests/test-chg.t b/tests/test-chg.t
--- a/tests/test-chg.t
+++ b/tests/test-chg.t
@@ -475,7 +475,7 @@
   $ hg init $TESTTMP/profiling
   $ cd $TESTTMP/profiling
   $ filteredchg() {
-  >   CHGDEBUG=1 chg "$@" 2>&1 | egrep 'Sample count|start cmdserver' || true
+  >   CHGDEBUG=1 chg "$@" 2>&1 | sed -rn 's_^No samples recorded.*$_Sample count: 0_; /Sample count/p; /start cmdserver/p'
   > }
   $ newchg() {
   >   chg --kill-chg-daemon



To: aalekseyev, #hg-reviewers, Alphare
Cc: Alphare, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211021/0c6b510a/attachment-0002.html>


More information about the Mercurial-patches mailing list