tests/test-http-bad-server.t
changeset 49877 950c39918bd2
parent 49499 4f36738a869a
child 49878 f68b0a5d3211
equal deleted inserted replaced
49876:a77c1375c316 49877:950c39918bd2
   520   write(25 from 28) -> (0) Transfer-Encoding: chunke
   520   write(25 from 28) -> (0) Transfer-Encoding: chunke
   521   write limit reached; closing socket
   521   write limit reached; closing socket
   522   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   522   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   523   Traceback (most recent call last):
   523   Traceback (most recent call last):
   524   Exception: connection closed after sending N bytes
   524   Exception: connection closed after sending N bytes
   525   write(293) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\nHTTP/1.1 500 Internal Server Error\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nTransfer-Encoding: chunked\r\n\r\n (py3 !)
   525   write(293) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\nHTTP/1.1 500 Internal Server Error\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nTransfer-Encoding: chunked\r\n\r\n
   526   
   526   
   527 #endif
   527 #endif
   528 
   528 
   529   $ rm -f error.log
   529   $ rm -f error.log
   530 
   530 
   677   Exception: connection closed after sending N bytes
   677   Exception: connection closed after sending N bytes
   678   
   678   
   679 
   679 
   680 #else
   680 #else
   681   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -11
   681   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -11
   682   readline(~) -> (2) \r\n (py3 !)
   682   readline(~) -> (2) \r\n
   683   write(167) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n (py3 !)
   683   write(167) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n
   684   write(6) -> 1\\r\\n\x04\\r\\n (esc)
   684   write(6) -> 1\\r\\n\x04\\r\\n (esc)
   685   write(9) -> 4\r\nnone\r\n
   685   write(9) -> 4\r\nnone\r\n
   686   write(6 from 9) -> (0) 4\r\nHG2
   686   write(6 from 9) -> (0) 4\r\nHG2
   687   write limit reached; closing socket
   687   write limit reached; closing socket
   688   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   688   $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob)
   722   Exception: connection closed after sending N bytes
   722   Exception: connection closed after sending N bytes
   723   
   723   
   724 
   724 
   725 #else
   725 #else
   726   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12
   726   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12
   727   readline(~) -> (2) \r\n (py3 !)
   727   readline(~) -> (2) \r\n
   728   write(167) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n (py3 !)
   728   write(167) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n
   729   write(41) -> Content-Type: application/mercurial-0.2\r\n
   729   write(41) -> Content-Type: application/mercurial-0.2\r\n
   730   write(6) -> 1\\r\\n\x04\\r\\n (esc)
   730   write(6) -> 1\\r\\n\x04\\r\\n (esc)
   731   write(9) -> 4\r\nnone\r\n
   731   write(9) -> 4\r\nnone\r\n
   732   write(9) -> 4\r\nHG20\r\n
   732   write(9) -> 4\r\nHG20\r\n
   733   write(6 from 9) -> (0) 4\\r\\n\x00\x00\x00 (esc)
   733   write(6 from 9) -> (0) 4\\r\\n\x00\x00\x00 (esc)
   769   Exception: connection closed after sending N bytes
   769   Exception: connection closed after sending N bytes
   770   
   770   
   771 
   771 
   772 #else
   772 #else
   773   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12
   773   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -12
   774   readline(~) -> (2) \r\n (py3 !)
   774   readline(~) -> (2) \r\n
   775   write(167) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n (py3 !)
   775   write(167) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n
   776   write(41) -> Content-Type: application/mercurial-0.2\r\n
   776   write(41) -> Content-Type: application/mercurial-0.2\r\n
   777   write(6) -> 1\\r\\n\x04\\r\\n (esc)
   777   write(6) -> 1\\r\\n\x04\\r\\n (esc)
   778   write(9) -> 4\r\nnone\r\n
   778   write(9) -> 4\r\nnone\r\n
   779   write(9) -> 4\r\nHG20\r\n
   779   write(9) -> 4\r\nHG20\r\n
   780   write(9 from 9) -> (0) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
   780   write(9 from 9) -> (0) 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
   818   
   818   
   819 
   819 
   820 #else
   820 #else
   821 
   821 
   822   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -13
   822   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -13
   823   readline(~) -> (2) \r\n (py3 !)
   823   readline(~) -> (2) \r\n
   824   write(167) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n (py3 !)
   824   write(167) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n
   825   write(41) -> Content-Type: application/mercurial-0.2\r\n
   825   write(41) -> Content-Type: application/mercurial-0.2\r\n
   826   write(6) -> 1\\r\\n\x04\\r\\n (esc)
   826   write(6) -> 1\\r\\n\x04\\r\\n (esc)
   827   write(9) -> 4\r\nnone\r\n
   827   write(9) -> 4\r\nnone\r\n
   828   write(9) -> 4\r\nHG20\r\n
   828   write(9) -> 4\r\nHG20\r\n
   829   write(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
   829   write(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
   871   Exception: connection closed after sending N bytes
   871   Exception: connection closed after sending N bytes
   872   
   872   
   873 
   873 
   874 #else
   874 #else
   875   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -14
   875   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -14
   876   readline(~) -> (2) \r\n (py3 !)
   876   readline(~) -> (2) \r\n
   877   write(167) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n (py3 !)
   877   write(167) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n
   878   write(41) -> Content-Type: application/mercurial-0.2\r\n
   878   write(41) -> Content-Type: application/mercurial-0.2\r\n
   879   write(6) -> 1\\r\\n\x04\\r\\n (esc)
   879   write(6) -> 1\\r\\n\x04\\r\\n (esc)
   880   write(9) -> 4\r\nnone\r\n
   880   write(9) -> 4\r\nnone\r\n
   881   write(9) -> 4\r\nHG20\r\n
   881   write(9) -> 4\r\nHG20\r\n
   882   write(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
   882   write(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
   927   Exception: connection closed after sending N bytes
   927   Exception: connection closed after sending N bytes
   928   
   928   
   929 
   929 
   930 #else
   930 #else
   931   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -15
   931   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -15
   932   write(167) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n (py3 !)
   932   write(167) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n
   933   write(28) -> Transfer-Encoding: chunked\r\n
   933   write(28) -> Transfer-Encoding: chunked\r\n
   934   write(6) -> 1\\r\\n\x04\\r\\n (esc)
   934   write(6) -> 1\\r\\n\x04\\r\\n (esc)
   935   write(9) -> 4\r\nnone\r\n
   935   write(9) -> 4\r\nnone\r\n
   936   write(9) -> 4\r\nHG20\r\n
   936   write(9) -> 4\r\nHG20\r\n
   937   write(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
   937   write(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
   984   Exception: connection closed after sending N bytes
   984   Exception: connection closed after sending N bytes
   985   
   985   
   986 
   986 
   987 #else
   987 #else
   988   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -16
   988   $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -16
   989   readline(~) -> (2) \r\n (py3 !)
   989   readline(~) -> (2) \r\n
   990   write(167) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n (py3 !)
   990   write(167) -> HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunked\r\n\r\n
   991   write(41) -> Content-Type: application/mercurial-0.2\r\n
   991   write(41) -> Content-Type: application/mercurial-0.2\r\n
   992   write(6) -> 1\\r\\n\x04\\r\\n (esc)
   992   write(6) -> 1\\r\\n\x04\\r\\n (esc)
   993   write(9) -> 4\r\nnone\r\n
   993   write(9) -> 4\r\nnone\r\n
   994   write(9) -> 4\r\nHG20\r\n
   994   write(9) -> 4\r\nHG20\r\n
   995   write(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)
   995   write(9) -> 4\\r\\n\x00\x00\x00\x00\\r\\n (esc)