Mercurial > evolve
changeset 5401:d171815d2618
tests: replace curl with hg debugdownload command
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 10 Jul 2020 12:05:25 +0800 |
parents | 2c16855aa3fe |
children | 7bb9ed141238 |
files | tests/test-evolve-serveronly-bundle2.t tests/test-minitopic.t |
diffstat | 2 files changed, 17 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-evolve-serveronly-bundle2.t Fri Jul 10 11:53:00 2020 +0800 +++ b/tests/test-evolve-serveronly-bundle2.t Fri Jul 10 12:05:25 2020 +0800 @@ -85,10 +85,10 @@ Capacity testing =================== - $ curl -s http://localhost:$HGPORT/?cmd=hello + $ hg debugdownload http://localhost:$HGPORT/?cmd=hello capabilities: _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch * (glob) - $ curl -s http://localhost:$HGPORT/?cmd=capabilities - _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch * (no-eol) (glob) + $ hg debugdownload http://localhost:$HGPORT/?cmd=capabilities + _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch * (glob) $ hg debugpushkey http://localhost:$HGPORT namespaces bookmarks @@ -150,10 +150,10 @@ namespaces obsolete phases - $ curl -s http://localhost:$HGPORT/?cmd=hello + $ hg debugdownload http://localhost:$HGPORT/?cmd=hello capabilities: _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch * (glob) - $ curl -s http://localhost:$HGPORT/?cmd=capabilities - _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch * (no-eol) (glob) + $ hg debugdownload http://localhost:$HGPORT/?cmd=capabilities + _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch * (glob) $ echo '[experimental]' >> server/.hg/hgrc $ echo 'evolution=!' >> server/.hg/hgrc @@ -177,10 +177,10 @@ obsolete phases - $ curl -s http://localhost:$HGPORT/?cmd=hello + $ hg debugdownload http://localhost:$HGPORT/?cmd=hello capabilities: _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch * (glob) - $ curl -s http://localhost:$HGPORT/?cmd=capabilities - _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch * (no-eol) (glob) + $ hg debugdownload http://localhost:$HGPORT/?cmd=capabilities + _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch * (glob) Test obshashrange discover ===========================================
--- a/tests/test-minitopic.t Fri Jul 10 11:53:00 2020 +0800 +++ b/tests/test-minitopic.t Fri Jul 10 12:05:25 2020 +0800 @@ -45,9 +45,9 @@ $ hg serve -R server-disabled -p $HGPORT2 -d --pid-file hg2.pid --errorlog hg2.error $ cat hg2.pid >> $DAEMON_PIDS - $ curl --silent http://localhost:$HGPORT/?cmd=capabilities | grep -o topics + $ hg debugdownload http://localhost:$HGPORT/?cmd=capabilities | grep -o topics topics - $ curl --silent http://localhost:$HGPORT2/?cmd=capabilities | grep -o topics + $ hg debugdownload http://localhost:$HGPORT2/?cmd=capabilities | grep -o topics [1] Pushing first changesets to the servers @@ -95,9 +95,9 @@ (merge or see 'hg help push' for details about pushing new heads) [255] - $ curl --silent http://localhost:$HGPORT/?cmd=branchmap | sort + $ hg debugdownload http://localhost:$HGPORT/?cmd=branchmap | sort default 0ab6d544d0efd629fda056601cfe95e73d1af210 - $ curl --silent http://localhost:$HGPORT2/?cmd=branchmap | sort + $ hg debugdownload http://localhost:$HGPORT2/?cmd=branchmap | sort default 0ab6d544d0efd629fda056601cfe95e73d1af210 $ cat $TESTTMP/hg1.error $ cat $TESTTMP/hg2.error @@ -162,10 +162,10 @@ remote: adding file changes remote: added 1 changesets with 1 changes to 1 files (+1 heads) - $ curl --silent http://localhost:$HGPORT/?cmd=branchmap | sort + $ hg debugdownload http://localhost:$HGPORT/?cmd=branchmap | sort default 9c660cf97499ae01ccb6894880455c6ffa4b19cf default%3Atopic_A f31af349535e413b6023f11b51a6afccf4139180 - $ curl --silent http://localhost:$HGPORT2/?cmd=branchmap | sort + $ hg debugdownload http://localhost:$HGPORT2/?cmd=branchmap | sort default 9c660cf97499ae01ccb6894880455c6ffa4b19cf f31af349535e413b6023f11b51a6afccf4139180 $ cat $TESTTMP/hg1.error $ cat $TESTTMP/hg2.error @@ -231,10 +231,10 @@ remote: adding file changes remote: added 1 changesets with 1 changes to 1 files - $ curl --silent http://localhost:$HGPORT/?cmd=branchmap | sort + $ hg debugdownload http://localhost:$HGPORT/?cmd=branchmap | sort default 9c660cf97499ae01ccb6894880455c6ffa4b19cf default%3Atopic_A f31af349535e413b6023f11b51a6afccf4139180 82c5842e047215160763f81ae93ae42c65b20a63 - $ curl --silent http://localhost:$HGPORT2/?cmd=branchmap | sort + $ hg debugdownload http://localhost:$HGPORT2/?cmd=branchmap | sort default f31af349535e413b6023f11b51a6afccf4139180 82c5842e047215160763f81ae93ae42c65b20a63 $ cat $TESTTMP/hg1.error $ cat $TESTTMP/hg2.error