Mercurial > hg
changeset 32089:f942dc80819f stable
test: glob out variation from 'HGPORT' length
On system where HGTEST_PORT is configured to a value an order a magnitude lower
or higher than the default. The number of digit in the HGPORT changes and this
test breaks.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Mon, 01 May 2017 16:09:35 +0200 |
parents | 0d892d820a51 |
children | c401be738268 |
files | tests/test-http-bad-server.t |
diffstat | 1 files changed, 45 insertions(+), 44 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-http-bad-server.t Mon May 01 19:59:13 2017 +0900 +++ b/tests/test-http-bad-server.t Mon May 01 16:09:35 2017 +0200 @@ -113,9 +113,9 @@ readline\(210 from (-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re) readline(177 from -1) -> (27) Accept-Encoding: identity\r\n readline(150 from -1) -> (35) accept: application/mercurial-0.1\r\n - readline(115 from -1) -> (23) host: localhost:$HGPORT\r\n - readline(92 from -1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n - readline(43 from -1) -> (2) \r\n + readline(115 from -1) -> (2?) host: localhost:$HGPORT\r\n (glob) + readline(9? from -1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) + readline(4? from -1) -> (2) \r\n (glob) write(36) -> HTTP/1.1 200 Script output follows\r\n write(23) -> Server: badhttpserver\r\n write(37) -> Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n @@ -123,8 +123,8 @@ write(21) -> Content-Length: 405\r\n write(2) -> \r\n write(405) -> lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none - readline\(41 from (-1|65537)\) -> \(26\) GET /\?cmd=batch HTTP/1.1\\r\\n (re) - readline(15 from -1) -> (15) Accept-Encoding + readline\(4[12] from (-1|65537)\) -> \(26\) GET /\?cmd=batch HTTP/1.1\\r\\n (re) + readline(1? from -1) -> (1?) Accept-Encoding* (glob) read limit reached; closing socket readline\(210 from (-1|65537)\) -> \(26\) GET /\?cmd=batch HTTP/1.1\\r\\n (re) readline(184 from -1) -> (27) Accept-Encoding: identity\r\n @@ -152,9 +152,9 @@ readline\(292 from (-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re) readline(259 from -1) -> (27) Accept-Encoding: identity\r\n readline(232 from -1) -> (35) accept: application/mercurial-0.1\r\n - readline(197 from -1) -> (23) host: localhost:$HGPORT\r\n - readline(174 from -1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n - readline(125 from -1) -> (2) \r\n + readline(197 from -1) -> (2?) host: localhost:$HGPORT\r\n (glob) + readline(17? from -1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) + readline(12? from -1) -> (2) \r\n (glob) write(36) -> HTTP/1.1 200 Script output follows\r\n write(23) -> Server: badhttpserver\r\n write(37) -> Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n @@ -162,10 +162,11 @@ write(21) -> Content-Length: 405\r\n write(2) -> \r\n write(405) -> lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httpmediatype=0.1rx,0.1tx,0.2tx compression=none - readline\(123 from (-1|65537)\) -> \(26\) GET /\?cmd=batch HTTP/1.1\\r\\n (re) - readline(97 from -1) -> (27) Accept-Encoding: identity\r\n - readline(70 from -1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n - readline(41 from -1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n + readline\(12[34] from (-1|65537)\) -> \(2[67]\) GET /\?cmd=batch HTTP/1.1\\r\\n (re) + readline(9? from -1) -> (27) Accept-Encoding: identity\r\n (glob) + readline(7? from -1) -> (29) vary: X-HgArg-1,X-HgProto-1\r\n (glob) + readline(4? from -1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n (glob) + readline(1 from -1) -> (1) x (?) read limit reached; closing socket readline\(292 from (-1|65537)\) -> \(26\) GET /\?cmd=batch HTTP/1.1\\r\\n (re) readline(266 from -1) -> (27) Accept-Encoding: identity\r\n @@ -173,9 +174,9 @@ readline(210 from -1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n readline(169 from -1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n readline(121 from -1) -> (35) accept: application/mercurial-0.1\r\n - readline(86 from -1) -> (23) host: localhost:$HGPORT\r\n - readline(63 from -1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n - readline(14 from -1) -> (2) \r\n + readline(86 from -1) -> (2?) host: localhost:$HGPORT\r\n (glob) + readline(6? from -1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) + readline(1? from -1) -> (2) \r\n (glob) write(36) -> HTTP/1.1 200 Script output follows\r\n write(23) -> Server: badhttpserver\r\n write(37) -> Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n @@ -183,7 +184,7 @@ write(20) -> Content-Length: 42\r\n write(2) -> \r\n write(42) -> 96ee1d7354c4ad7372047672c36a1f561e3a6a4c\n; - readline\(12 from (-1|65537)\) -> \(12\) GET /\?cmd=ge (re) + readline\(1[23] from (-1|65537)\) -> \(1[23]\) GET /\?cmd=ge.? (re) read limit reached; closing socket readline\(292 from (-1|65537)\) -> \(30\) GET /\?cmd=getbundle HTTP/1.1\\r\\n (re) readline(262 from -1) -> (27) Accept-Encoding: identity\r\n @@ -208,9 +209,9 @@ readline\(315 from (-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re) readline(282 from -1) -> (27) Accept-Encoding: identity\r\n readline(255 from -1) -> (35) accept: application/mercurial-0.1\r\n - readline(220 from -1) -> (23) host: localhost:$HGPORT\r\n - readline(197 from -1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n - readline(148 from -1) -> (2) \r\n + readline(220 from -1) -> (2?) host: localhost:$HGPORT\r\n (glob) + readline(19? from -1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) + readline(14? from -1) -> (2) \r\n (glob) write(36) -> HTTP/1.1 200 Script output follows\r\n write(23) -> Server: badhttpserver\r\n write(37) -> Date: Fri, 14 Apr 2017 00:00:00 GMT\r\n @@ -218,12 +219,12 @@ write(21) -> Content-Length: 418\r\n write(2) -> \r\n write(418) -> lookup changegroupsubset branchmap pushkey known getbundle unbundlehash batch streamreqs=generaldelta,revlogv1 bundle2=HG20%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps unbundle=HG10GZ,HG10BZ,HG10UN httpheader=1024 httppostargs httpmediatype=0.1rx,0.1tx,0.2tx compression=none - readline\(146 from (-1|65537)\) -> \(27\) POST /\?cmd=batch HTTP/1.1\\r\\n (re) - readline(119 from -1) -> (27) Accept-Encoding: identity\r\n - readline(92 from -1) -> (41) content-type: application/mercurial-0.1\r\n - readline(51 from -1) -> (19) vary: X-HgProto-1\r\n - readline(32 from -1) -> (19) x-hgargs-post: 28\r\n - readline(13 from -1) -> (13) x-hgproto-1: + readline\(14[67] from (-1|65537)\) -> \(2[67]\) POST /\?cmd=batch HTTP/1.1\\r\\n (re) + readline\(1(19|20) from -1\) -> \(27\) Accept-Encoding: identity\\r\\n (re) + readline(9? from -1) -> (41) content-type: application/mercurial-0.1\r\n (glob) + readline(5? from -1) -> (19) vary: X-HgProto-1\r\n (glob) + readline(3? from -1) -> (19) x-hgargs-post: 28\r\n (glob) + readline(1? from -1) -> (1?) x-hgproto-1: * (glob) read limit reached; closing socket readline\(315 from (-1|65537)\) -> \(27\) POST /\?cmd=batch HTTP/1.1\\r\\n (re) readline(288 from -1) -> (27) Accept-Encoding: identity\r\n @@ -233,10 +234,10 @@ readline(182 from -1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n readline(134 from -1) -> (35) accept: application/mercurial-0.1\r\n readline(99 from -1) -> (20) content-length: 28\r\n - readline(79 from -1) -> (23) host: localhost:$HGPORT\r\n - readline(56 from -1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n - readline(7 from -1) -> (2) \r\n - read(5 from 28) -> (5) cmds= + readline(79 from -1) -> (2?) host: localhost:$HGPORT\r\n (glob) + readline(5? from -1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n (glob) + readline(? from -1) -> (2) \r\n (glob) + read(? from 28) -> (?) cmds=* (glob) read limit reached, closing socket write(36) -> HTTP/1.1 500 Internal Server Error\r\n @@ -259,7 +260,7 @@ readline\((-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re) readline(-1) -> (27) Accept-Encoding: identity\r\n readline(-1) -> (35) accept: application/mercurial-0.1\r\n - readline(-1) -> (23) host: localhost:$HGPORT\r\n + readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob) readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n readline(-1) -> (2) \r\n write(1 from 36) -> (0) H @@ -284,7 +285,7 @@ readline\((-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re) readline(-1) -> (27) Accept-Encoding: identity\r\n readline(-1) -> (35) accept: application/mercurial-0.1\r\n - readline(-1) -> (23) host: localhost:$HGPORT\r\n + readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob) readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n readline(-1) -> (2) \r\n write(36 from 36) -> (144) HTTP/1.1 200 Script output follows\r\n @@ -319,7 +320,7 @@ readline\((-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re) readline(-1) -> (27) Accept-Encoding: identity\r\n readline(-1) -> (35) accept: application/mercurial-0.1\r\n - readline(-1) -> (23) host: localhost:$HGPORT\r\n + readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob) readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n readline(-1) -> (2) \r\n write(36 from 36) -> (659) HTTP/1.1 200 Script output follows\r\n @@ -335,7 +336,7 @@ readline(-1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n readline(-1) -> (35) accept: application/mercurial-0.1\r\n - readline(-1) -> (23) host: localhost:$HGPORT\r\n + readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob) readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n readline(-1) -> (2) \r\n write(36 from 36) -> (94) HTTP/1.1 200 Script output follows\r\n @@ -362,7 +363,7 @@ readline\((-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re) readline(-1) -> (27) Accept-Encoding: identity\r\n readline(-1) -> (35) accept: application/mercurial-0.1\r\n - readline(-1) -> (23) host: localhost:$HGPORT\r\n + readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob) readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n readline(-1) -> (2) \r\n write(36 from 36) -> (724) HTTP/1.1 200 Script output follows\r\n @@ -378,7 +379,7 @@ readline(-1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n readline(-1) -> (35) accept: application/mercurial-0.1\r\n - readline(-1) -> (23) host: localhost:$HGPORT\r\n + readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob) readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n readline(-1) -> (2) \r\n write(36 from 36) -> (159) HTTP/1.1 200 Script output follows\r\n @@ -414,7 +415,7 @@ readline\((-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re) readline(-1) -> (27) Accept-Encoding: identity\r\n readline(-1) -> (35) accept: application/mercurial-0.1\r\n - readline(-1) -> (23) host: localhost:$HGPORT\r\n + readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob) readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n readline(-1) -> (2) \r\n write(36 from 36) -> (859) HTTP/1.1 200 Script output follows\r\n @@ -430,7 +431,7 @@ readline(-1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n readline(-1) -> (35) accept: application/mercurial-0.1\r\n - readline(-1) -> (23) host: localhost:$HGPORT\r\n + readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob) readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n readline(-1) -> (2) \r\n write(36 from 36) -> (294) HTTP/1.1 200 Script output follows\r\n @@ -446,7 +447,7 @@ readline(-1) -> (396) x-hgarg-1: bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n readline(-1) -> (35) accept: application/mercurial-0.1\r\n - readline(-1) -> (23) host: localhost:$HGPORT\r\n + readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob) readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n readline(-1) -> (2) \r\n write(36 from 36) -> (93) HTTP/1.1 200 Script output follows\r\n @@ -475,7 +476,7 @@ readline\((-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re) readline(-1) -> (27) Accept-Encoding: identity\r\n readline(-1) -> (35) accept: application/mercurial-0.1\r\n - readline(-1) -> (23) host: localhost:$HGPORT\r\n + readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob) readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n readline(-1) -> (2) \r\n write(36 from 36) -> (897) HTTP/1.1 200 Script output follows\r\n @@ -491,7 +492,7 @@ readline(-1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n readline(-1) -> (35) accept: application/mercurial-0.1\r\n - readline(-1) -> (23) host: localhost:$HGPORT\r\n + readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob) readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n readline(-1) -> (2) \r\n write(36 from 36) -> (332) HTTP/1.1 200 Script output follows\r\n @@ -507,7 +508,7 @@ readline(-1) -> (396) x-hgarg-1: bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n readline(-1) -> (35) accept: application/mercurial-0.1\r\n - readline(-1) -> (23) host: localhost:$HGPORT\r\n + readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob) readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n readline(-1) -> (2) \r\n write(36 from 36) -> (131) HTTP/1.1 200 Script output follows\r\n @@ -538,7 +539,7 @@ readline\((-1|65537)\) -> \(33\) GET /\?cmd=capabilities HTTP/1.1\\r\\n (re) readline(-1) -> (27) Accept-Encoding: identity\r\n readline(-1) -> (35) accept: application/mercurial-0.1\r\n - readline(-1) -> (23) host: localhost:$HGPORT\r\n + readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob) readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n readline(-1) -> (2) \r\n write(36 from 36) -> (909) HTTP/1.1 200 Script output follows\r\n @@ -554,7 +555,7 @@ readline(-1) -> (41) x-hgarg-1: cmds=heads+%3Bknown+nodes%3D\r\n readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n readline(-1) -> (35) accept: application/mercurial-0.1\r\n - readline(-1) -> (23) host: localhost:$HGPORT\r\n + readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob) readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n readline(-1) -> (2) \r\n write(36 from 36) -> (344) HTTP/1.1 200 Script output follows\r\n @@ -570,7 +571,7 @@ readline(-1) -> (396) x-hgarg-1: bundlecaps=HG20%2Cbundle2%3DHG20%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=1&common=0000000000000000000000000000000000000000&heads=96ee1d7354c4ad7372047672c36a1f561e3a6a4c&listkeys=phases%2Cbookmarks\r\n readline(-1) -> (48) x-hgproto-1: 0.1 0.2 comp=zstd,zlib,none,bzip2\r\n readline(-1) -> (35) accept: application/mercurial-0.1\r\n - readline(-1) -> (23) host: localhost:$HGPORT\r\n + readline(-1) -> (2?) host: localhost:$HGPORT\r\n (glob) readline(-1) -> (49) user-agent: mercurial/proto-1.0 (Mercurial 4.2)\r\n readline(-1) -> (2) \r\n write(36 from 36) -> (143) HTTP/1.1 200 Script output follows\r\n