comparison tests/wireprotohelpers.sh @ 37718:ad1c07008e0b

debugcommands: ability to suppress logging of handshake The tests for calling wire protocol commands were getting quite verbose because they included the results of the capabilities request. Furthermore, it was annoying to have to update several tests every time the capabilities response changed. The only tests that really care about the low-level details of the capabilities requests are those testing the protocol handshake. And those are mostly not instantiating peer instances or are contained to limited files. This commit adds an option to `hg debugwireproto` to suppress logging of the handshake. The shell helper function to perform HTTP tests has been updated to use this by default. Lots of excessive test output has gone away. Differential Revision: https://phab.mercurial-scm.org/D3378
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 14 Apr 2018 11:49:57 -0700
parents 693cb3768943
children 89a16704114c
comparison
equal deleted inserted replaced
37717:0664be4f0c1f 37718:ad1c07008e0b
4 sendhttpraw() { 4 sendhttpraw() {
5 hg --verbose debugwireproto --peer raw http://$LOCALIP:$HGPORT/ 5 hg --verbose debugwireproto --peer raw http://$LOCALIP:$HGPORT/
6 } 6 }
7 7
8 sendhttpv2peer() { 8 sendhttpv2peer() {
9 hg --verbose debugwireproto --nologhandshake --peer http2 http://$LOCALIP:$HGPORT/
10 }
11
12 sendhttpv2peerhandshake() {
9 hg --verbose debugwireproto --peer http2 http://$LOCALIP:$HGPORT/ 13 hg --verbose debugwireproto --peer http2 http://$LOCALIP:$HGPORT/
10 } 14 }
11 15
12 cat > dummycommands.py << EOF 16 cat > dummycommands.py << EOF
13 from mercurial import ( 17 from mercurial import (