changeset 5402:7bb9ed141238

tests: use hg debugcapabilities instead of curl
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 11 Jul 2020 10:01:54 +0800
parents d171815d2618
children 741d00764d3b
files tests/test-wireproto.t
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-wireproto.t	Fri Jul 10 12:05:25 2020 +0800
+++ b/tests/test-wireproto.t	Sat Jul 11 10:01:54 2020 +0800
@@ -194,8 +194,9 @@
   $ hg serve -R server -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log  --config experimental.evolution.obsdiscovery=no
   $ cat hg.pid >> $DAEMON_PIDS
 
-  $ curl -s http://localhost:$HGPORT/?cmd=capabilities
-  _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch branchmap bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Acheckheads%3Drelated%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Aobsmarkers%3DV0%2CV1%0Aphases%3Dheads%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps%0Arev-branch-cache%0Astream%3Dv2 changegroupsubset compression=*zlib getbundle httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx known lookup pushkey streamreqs=generaldelta,revlogv1,sparserevlog unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (no-eol) (glob)
+  $ hg debugcapabilities http://localhost:$HGPORT | grep _evoext
+    _evoext_getbundle_obscommon
+    _evoext_obshashrange_v1
 
 Check we cannot use pushkey for marker exchange anymore