tests: split capabilities into separate lines while searching for "narrow"
authorAnton Shestakov <av6@dwimlabs.net>
Thu, 20 Sep 2018 17:02:31 +0800
changeset 39720 7d9b1b50cad5
parent 39719 255d1885c7f8
child 39721 1b5880352314
tests: split capabilities into separate lines while searching for "narrow" This test is interested only in capabilities that are related to narrow, so let's omit everything else. Makes it easier to update other capabilities (and "rev-branch-cache" is one of the usual patterns that are already present in tests/common-patterns.py anyway). Differential Revision: https://phab.mercurial-scm.org/D4678
tests/test-narrow-clone-non-narrow-server.t
--- a/tests/test-narrow-clone-non-narrow-server.t	Wed Sep 19 23:54:16 2018 -0400
+++ b/tests/test-narrow-clone-non-narrow-server.t	Thu Sep 20 17:02:31 2018 +0800
@@ -31,9 +31,9 @@
   > print(unquote(list(sys.stdin)[1]))
   > EOF
   $ echo hello | hg -R . serve --stdio | \
-  >   "$PYTHON" unquote.py | grep narrow
+  >   "$PYTHON" unquote.py | tr ' ' '\n' | grep narrow
   narrow=v0
-  rev-branch-cache changegroupsubset exp-narrow-1 getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
+  exp-narrow-1
 
   $ cd ..