Mercurial > hg
comparison tests/test-http-bad-server.t @ 48623:38028f3ef80c
test-http-bad-server: modify some `tail` call fit their goal
We want to check that we stop writing when we want to stop writing.
Differential Revision: https://phab.mercurial-scm.org/D12054
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 23 Jan 2022 20:24:35 +0100 |
parents | 7de3e7451763 |
children | 8a452efcce3c |
comparison
equal
deleted
inserted
replaced
48622:7de3e7451763 | 48623:38028f3ef80c |
---|---|
572 [255] | 572 [255] |
573 | 573 |
574 $ killdaemons.py $DAEMON_PIDS | 574 $ killdaemons.py $DAEMON_PIDS |
575 | 575 |
576 #if py36 | 576 #if py36 |
577 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -3 | 577 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -6 |
578 sendall(162 from 167) -> (0) HTTP/1.1 200 Script output follows\r\nServer: badhttpserver\r\nDate: $HTTP_DATE$\r\nContent-Type: application/mercurial-0.2\r\nTransfer-Encoding: chunke | |
579 write limit reached; closing socket | |
580 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) | |
578 Traceback (most recent call last): | 581 Traceback (most recent call last): |
579 Exception: connection closed after sending N bytes | 582 Exception: connection closed after sending N bytes |
580 | 583 |
581 | 584 |
582 #else | 585 #else |
583 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -4 | 586 $ "$PYTHON" $TESTDIR/filtertraceback.py < error.log | tail -7 |
587 write(41 from 41) -> (25) Content-Type: application/mercurial-0.2\r\n | |
588 write(25 from 28) -> (0) Transfer-Encoding: chunke | |
589 write limit reached; closing socket | |
584 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) | 590 $LOCALIP - - [$ERRDATE$] Exception happened during processing request '/?cmd=getbundle': (glob) |
585 Traceback (most recent call last): | 591 Traceback (most recent call last): |
586 Exception: connection closed after sending N bytes | 592 Exception: connection closed after sending N bytes |
587 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 !) | 593 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 !) |
588 | 594 |