# HG changeset patch # User Gregory Szorc # Date 2018-03-03 14:50:07 # Node ID 8395fddde46c01bdc04d8482928f0ba6bb2da28f # Parent 29128309c52d3917b015fbacd4d3cac932a5c8d9 util: report integer result from write() Python 2 sometimes returns None from write() calls. Python 3 doesn't. This will make test output inconsistent between Python 2 and 3. So let's paper over the differences by converting None to the length of the result string. Differential Revision: https://phab.mercurial-scm.org/D2584 diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -762,6 +762,11 @@ class fileobjectobserver(object): if not self.writes: return + # Python 2 returns None from some write() calls. Python 3 (reasonably) + # returns the integer bytes written. + if res is None and data: + res = len(data) + self.fh.write('%s> write(%d) -> %r' % (self.name, len(data), res)) self._writedata(data) diff --git a/tests/test-ssh-proto-unbundle.t b/tests/test-ssh-proto-unbundle.t --- a/tests/test-ssh-proto-unbundle.t +++ b/tests/test-ssh-proto-unbundle.t @@ -49,7 +49,7 @@ Test pushing bundle1 payload to a server > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -64,17 +64,17 @@ Test pushing bundle1 payload to a server o> readline() -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -83,7 +83,7 @@ Test pushing bundle1 payload to a server i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -99,7 +99,7 @@ Test pushing bundle1 payload to a server testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -114,17 +114,17 @@ Test pushing bundle1 payload to a server o> read(1) -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -133,7 +133,7 @@ Test pushing bundle1 payload to a server i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -216,7 +216,7 @@ ui.write() in hook is redirected to stde > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -231,17 +231,17 @@ ui.write() in hook is redirected to stde o> readline() -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -250,7 +250,7 @@ ui.write() in hook is redirected to stde i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -272,7 +272,7 @@ ui.write() in hook is redirected to stde testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -287,17 +287,17 @@ ui.write() in hook is redirected to stde o> read(1) -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -306,7 +306,7 @@ ui.write() in hook is redirected to stde i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -342,7 +342,7 @@ And a variation that writes multiple lin > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -357,17 +357,17 @@ And a variation that writes multiple lin o> readline() -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -376,7 +376,7 @@ And a variation that writes multiple lin i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -399,7 +399,7 @@ And a variation that writes multiple lin testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -414,17 +414,17 @@ And a variation that writes multiple lin o> read(1) -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -433,7 +433,7 @@ And a variation that writes multiple lin i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -470,7 +470,7 @@ And a variation that does a ui.flush() a > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -485,17 +485,17 @@ And a variation that does a ui.flush() a o> readline() -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -504,7 +504,7 @@ And a variation that does a ui.flush() a i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -526,7 +526,7 @@ And a variation that does a ui.flush() a testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -541,17 +541,17 @@ And a variation that does a ui.flush() a o> read(1) -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -560,7 +560,7 @@ And a variation that does a ui.flush() a i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -596,7 +596,7 @@ Multiple writes + flush > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -611,17 +611,17 @@ Multiple writes + flush o> readline() -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -630,7 +630,7 @@ Multiple writes + flush i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -653,7 +653,7 @@ Multiple writes + flush testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -668,17 +668,17 @@ Multiple writes + flush o> read(1) -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -687,7 +687,7 @@ Multiple writes + flush i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -724,7 +724,7 @@ ui.write() + ui.write_err() output is ca > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -739,17 +739,17 @@ ui.write() + ui.write_err() output is ca o> readline() -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -758,7 +758,7 @@ ui.write() + ui.write_err() output is ca i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -783,7 +783,7 @@ ui.write() + ui.write_err() output is ca testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -798,17 +798,17 @@ ui.write() + ui.write_err() output is ca o> read(1) -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -817,7 +817,7 @@ ui.write() + ui.write_err() output is ca i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -856,7 +856,7 @@ print() output is captured > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -871,17 +871,17 @@ print() output is captured o> readline() -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -890,7 +890,7 @@ print() output is captured i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -912,7 +912,7 @@ print() output is captured testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -927,17 +927,17 @@ print() output is captured o> read(1) -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -946,7 +946,7 @@ print() output is captured i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -982,7 +982,7 @@ Mixed print() and ui.write() are both ca > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -997,17 +997,17 @@ Mixed print() and ui.write() are both ca o> readline() -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -1016,7 +1016,7 @@ Mixed print() and ui.write() are both ca i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -1041,7 +1041,7 @@ Mixed print() and ui.write() are both ca testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1056,17 +1056,17 @@ Mixed print() and ui.write() are both ca o> read(1) -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -1075,7 +1075,7 @@ Mixed print() and ui.write() are both ca i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -1114,7 +1114,7 @@ print() to stdout and stderr both get ca > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1129,17 +1129,17 @@ print() to stdout and stderr both get ca o> readline() -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -1148,7 +1148,7 @@ print() to stdout and stderr both get ca i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -1173,7 +1173,7 @@ print() to stdout and stderr both get ca testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1188,17 +1188,17 @@ print() to stdout and stderr both get ca o> read(1) -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -1207,7 +1207,7 @@ print() to stdout and stderr both get ca i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -1252,7 +1252,7 @@ Shell hook writing to stdout has output > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1267,17 +1267,17 @@ Shell hook writing to stdout has output o> readline() -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -1286,7 +1286,7 @@ Shell hook writing to stdout has output i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -1309,7 +1309,7 @@ Shell hook writing to stdout has output testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1324,17 +1324,17 @@ Shell hook writing to stdout has output o> read(1) -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -1343,7 +1343,7 @@ Shell hook writing to stdout has output i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -1381,7 +1381,7 @@ Shell hook writing to stderr has output > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1396,17 +1396,17 @@ Shell hook writing to stderr has output o> readline() -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -1415,7 +1415,7 @@ Shell hook writing to stderr has output i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -1438,7 +1438,7 @@ Shell hook writing to stderr has output testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1453,17 +1453,17 @@ Shell hook writing to stderr has output o> read(1) -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -1472,7 +1472,7 @@ Shell hook writing to stderr has output i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -1512,7 +1512,7 @@ Shell hook writing to stdout and stderr > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1527,17 +1527,17 @@ Shell hook writing to stdout and stderr o> readline() -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -1546,7 +1546,7 @@ Shell hook writing to stdout and stderr i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -1571,7 +1571,7 @@ Shell hook writing to stdout and stderr testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1586,17 +1586,17 @@ Shell hook writing to stdout and stderr o> read(1) -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -1605,7 +1605,7 @@ Shell hook writing to stdout and stderr i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -1653,7 +1653,7 @@ Shell and Python hooks writing to stdout > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1668,17 +1668,17 @@ Shell and Python hooks writing to stdout o> readline() -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -1687,7 +1687,7 @@ Shell and Python hooks writing to stdout i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -1716,7 +1716,7 @@ Shell and Python hooks writing to stdout testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1731,17 +1731,17 @@ Shell and Python hooks writing to stdout o> read(1) -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -1750,7 +1750,7 @@ Shell and Python hooks writing to stdout i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -1793,7 +1793,7 @@ Pushing a bundle1 with no output > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1808,17 +1808,17 @@ Pushing a bundle1 with no output o> readline() -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -1827,7 +1827,7 @@ Pushing a bundle1 with no output i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -1845,7 +1845,7 @@ Pushing a bundle1 with no output testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1860,17 +1860,17 @@ Pushing a bundle1 with no output o> read(1) -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -1879,7 +1879,7 @@ Pushing a bundle1 with no output i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -1923,7 +1923,7 @@ Pushing a bundle1 with ui.write() and ui > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1938,17 +1938,17 @@ Pushing a bundle1 with ui.write() and ui o> readline() -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -1957,7 +1957,7 @@ Pushing a bundle1 with ui.write() and ui i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: @@ -1979,7 +1979,7 @@ Pushing a bundle1 with ui.write() and ui testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1994,17 +1994,17 @@ Pushing a bundle1 with ui.write() and ui o> read(1) -> 1: o> \n sending unbundle command - i> write(9) -> None: + i> write(9) -> 9: i> unbundle\n - i> write(9) -> None: + i> write(9) -> 9: i> heads 10\n - i> write(10) -> None: 666f726365 + i> write(10) -> 10: 666f726365 i> flush() -> None o> readline() -> 2: o> 0\n - i> write(4) -> None: + i> write(4) -> 4: i> 426\n - i> write(426) -> None: + i> write(426) -> 426: i> HG10UN\x00\x00\x00\x9eh\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>cba485ca3678256e044428f70f58291196f6e9de\n i> test\n i> 0 0\n @@ -2013,7 +2013,7 @@ Pushing a bundle1 with ui.write() and ui i> initial\x00\x00\x00\x00\x00\x00\x00\x8d\xcb\xa4\x85\xca6x%n\x04D(\xf7\x0fX)\x11\x96\xf6\xe9\xde\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00-foo\x00362fef284ce2ca02aecc8de6d5e8a1c3af0556fe\n i> \x00\x00\x00\x00\x00\x00\x00\x07foo\x00\x00\x00b6/\xef(L\xe2\xca\x02\xae\xcc\x8d\xe6\xd5\xe8\xa1\xc3\xaf\x05V\xfe\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00h\x98b\x13\xbdD\x85\xeaQS55\xe3\xfc\x9ex\x00zq\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x020\n i> \x00\x00\x00\x00\x00\x00\x00\x00 - i> write(2) -> None: + i> write(2) -> 2: i> 0\n i> flush() -> None o> readline() -> 2: diff --git a/tests/test-ssh-proto.t b/tests/test-ssh-proto.t --- a/tests/test-ssh-proto.t +++ b/tests/test-ssh-proto.t @@ -79,7 +79,7 @@ Server should answer the "hello" command > readline > EOF using raw connection to peer - i> write(6) -> None: + i> write(6) -> 6: i> hello\n o> readline() -> 4: o> 384\n @@ -100,9 +100,9 @@ I/O logging works $ hg debugserve --sshstdio --logiofd 1 << EOF > hello > EOF - o> write(4) -> None: + o> write(4) -> 4: o> 384\n - o> write(384) -> None: + o> write(384) -> 384: o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n 384 capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN @@ -115,9 +115,9 @@ I/O logging works capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN $ cat $TESTTMP/io - o> write(4) -> None: + o> write(4) -> 4: o> 384\n - o> write(384) -> None: + o> write(384) -> 384: o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n o> flush() -> None @@ -140,13 +140,13 @@ reply with empty response to the "betwee > readline > EOF using raw connection to peer - i> write(6) -> None: + i> write(6) -> 6: i> hello\n o> readline() -> 4: o> 384\n o> readline() -> 384: o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n - i> write(98) -> None: + i> write(98) -> 98: i> between\n i> pairs 81\n i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 @@ -214,7 +214,7 @@ And test the banner with the raw protoco > readline > EOF using raw connection to peer - i> write(6) -> None: + i> write(6) -> 6: i> hello\n o> readline() -> 15: o> banner: line 0\n @@ -240,7 +240,7 @@ And test the banner with the raw protoco o> 384\n o> readline() -> 384: o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n - i> write(98) -> None: + i> write(98) -> 98: i> between\n i> pairs 81\n i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 @@ -283,15 +283,15 @@ Sending an unknown command to the server > readline > EOF using raw connection to peer - i> write(10) -> None: + i> write(10) -> 10: i> pre-hello\n o> readline() -> 2: o> 0\n - i> write(6) -> None: + i> write(6) -> 6: i> hello\n o> readline() -> 4: o> 384\n - i> write(98) -> None: + i> write(98) -> 98: i> between\n i> pairs 81\n i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 @@ -341,25 +341,25 @@ Send multiple unknown commands before he > readline > EOF using raw connection to peer - i> write(9) -> None: + i> write(9) -> 9: i> unknown1\n o> readline() -> 2: o> 0\n - i> write(9) -> None: + i> write(9) -> 9: i> unknown2\n o> readline() -> 2: o> 0\n - i> write(9) -> None: + i> write(9) -> 9: i> unknown3\n o> readline() -> 2: o> 0\n - i> write(6) -> None: + i> write(6) -> 6: i> hello\n o> readline() -> 4: o> 384\n o> readline() -> 384: o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n - i> write(98) -> None: + i> write(98) -> 98: i> between\n i> pairs 81\n i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 @@ -417,7 +417,7 @@ Send an unknown command before hello tha > readline > EOF using raw connection to peer - i> write(52) -> None: + i> write(52) -> 52: i> with-args\n i> foo 13\n i> value for foo\n @@ -433,13 +433,13 @@ Send an unknown command before hello tha o> 0\n o> readline() -> 2: o> 0\n - i> write(6) -> None: + i> write(6) -> 6: i> hello\n o> readline() -> 4: o> 384\n o> readline() -> 384: o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n - i> write(98) -> None: + i> write(98) -> 98: i> between\n i> pairs 81\n i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 @@ -470,7 +470,7 @@ Send an unknown command having an argume > readline > EOF using raw connection to peer - i> write(16) -> None: + i> write(16) -> 16: i> unknown\n i> foo 1\n i> 0\n @@ -480,13 +480,13 @@ Send an unknown command having an argume o> 0\n o> readline() -> 2: o> 0\n - i> write(6) -> None: + i> write(6) -> 6: i> hello\n o> readline() -> 4: o> 384\n o> readline() -> 384: o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n - i> write(98) -> None: + i> write(98) -> 98: i> between\n i> pairs 81\n i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 @@ -515,7 +515,7 @@ Send an unknown command having an argume > readline > EOF using raw connection to peer - i> write(16) -> None: + i> write(16) -> 16: i> unknown\n i> foo 1\n i> 1\n @@ -525,13 +525,13 @@ Send an unknown command having an argume o> 0\n o> readline() -> 2: o> 0\n - i> write(6) -> None: + i> write(6) -> 6: i> hello\n o> readline() -> 4: o> 384\n o> readline() -> 384: o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n - i> write(98) -> None: + i> write(98) -> 98: i> between\n i> pairs 81\n i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 @@ -570,7 +570,7 @@ Dictionary value for unknown command > readline > EOF using raw connection to peer - i> write(48) -> None: + i> write(48) -> 48: i> unknown\n i> dict 3\n i> key1 3\n @@ -595,7 +595,7 @@ Dictionary value for unknown command o> 0\n o> readline() -> 2: o> 0\n - i> write(6) -> None: + i> write(6) -> 6: i> hello\n o> readline() -> 4: o> 384\n @@ -616,7 +616,7 @@ Incomplete dictionary send > readline > EOF using raw connection to peer - i> write(26) -> None: + i> write(26) -> 26: i> unknown\n i> dict 3\n i> key1 3\n @@ -643,7 +643,7 @@ Incomplete value send > readline > EOF using raw connection to peer - i> write(24) -> None: + i> write(24) -> 24: i> unknown\n i> dict 3\n i> key1 3\n @@ -673,17 +673,17 @@ Send a command line with spaces > readline > EOF using raw connection to peer - i> write(18) -> None: + i> write(18) -> 18: i> unknown withspace\n o> readline() -> 2: o> 0\n - i> write(6) -> None: + i> write(6) -> 6: i> hello\n o> readline() -> 4: o> 384\n o> readline() -> 384: o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n - i> write(98) -> None: + i> write(98) -> 98: i> between\n i> pairs 81\n i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 @@ -707,17 +707,17 @@ Send a command line with spaces > readline > EOF using raw connection to peer - i> write(29) -> None: + i> write(29) -> 29: i> unknown with multiple spaces\n o> readline() -> 2: o> 0\n - i> write(6) -> None: + i> write(6) -> 6: i> hello\n o> readline() -> 4: o> 384\n o> readline() -> 384: o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n - i> write(98) -> None: + i> write(98) -> 98: i> between\n i> pairs 81\n i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 @@ -744,7 +744,7 @@ Send a command line with spaces > readline > EOF using raw connection to peer - i> write(38) -> None: + i> write(38) -> 38: i> unknown with spaces\n i> key 10\n i> some value\n @@ -754,13 +754,13 @@ Send a command line with spaces o> 0\n o> readline() -> 2: o> 0\n - i> write(6) -> None: + i> write(6) -> 6: i> hello\n o> readline() -> 4: o> 384\n o> readline() -> 384: o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n - i> write(98) -> None: + i> write(98) -> 98: i> between\n i> pairs 81\n i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 @@ -784,13 +784,13 @@ Send an unknown command after the "betwe > readline > EOF using raw connection to peer - i> write(6) -> None: + i> write(6) -> 6: i> hello\n o> readline() -> 4: o> 384\n o> readline() -> 384: o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n - i> write(105) -> None: + i> write(105) -> 105: i> between\n i> pairs 81\n i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000unknown @@ -822,7 +822,7 @@ And one with arguments > readline > EOF using raw connection to peer - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -835,7 +835,7 @@ And one with arguments o> 1\n o> readline() -> 1: o> \n - i> write(31) -> None: + i> write(31) -> 31: i> unknown\n i> foo 5\n i> \n @@ -865,11 +865,11 @@ Send a valid command before the handshak > readline > EOF using raw connection to peer - i> write(6) -> None: + i> write(6) -> 6: i> heads\n o> readline() -> 3: o> 41\n - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -895,11 +895,11 @@ And a variation that doesn't send the be > readline > EOF using raw connection to peer - i> write(6) -> None: + i> write(6) -> 6: i> heads\n o> readline() -> 3: o> 41\n - i> write(6) -> None: + i> write(6) -> 6: i> hello\n o> readline() -> 41: o> 68986213bd4485ea51533535e3fc9e78007a711f\n @@ -923,11 +923,11 @@ Send an upgrade request to a server that > readline > EOF using raw connection to peer - i> write(77) -> None: + i> write(77) -> 77: i> upgrade 2e82ab3f-9ce3-4b4e-8f8c-6fd1c0e9e23a proto=irrelevant1%2Cirrelevant2\n o> readline() -> 2: o> 0\n - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -984,7 +984,7 @@ Send an upgrade request to a server that > readline > EOF using raw connection to peer - i> write(153) -> None: + i> write(153) -> 153: i> upgrade this-is-some-token proto=exp-ssh-v2-0001\n i> hello\n i> between\n @@ -1083,7 +1083,7 @@ Command after upgrade to version 2 is pr > readline > EOF using raw connection to peer - i> write(153) -> None: + i> write(153) -> 153: i> upgrade this-is-some-token proto=exp-ssh-v2-0001\n i> hello\n i> between\n @@ -1095,7 +1095,7 @@ Command after upgrade to version 2 is pr o> 383\n o> readline() -> 384: o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n - i> write(6) -> None: + i> write(6) -> 6: i> hello\n o> readline() -> 4: o> 366\n @@ -1121,7 +1121,7 @@ Multiple upgrades is not allowed > readavailable > EOF using raw connection to peer - i> write(153) -> None: + i> write(153) -> 153: i> upgrade this-is-some-token proto=exp-ssh-v2-0001\n i> hello\n i> between\n @@ -1133,7 +1133,7 @@ Multiple upgrades is not allowed o> 383\n o> readline() -> 384: o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n - i> write(45) -> None: + i> write(45) -> 45: i> upgrade another-token proto=irrelevant\n i> hello\n o> readline() -> 1: @@ -1150,7 +1150,7 @@ Malformed upgrade request line (not exac > readline > EOF using raw connection to peer - i> write(8) -> None: + i> write(8) -> 8: i> upgrade\n o> readline() -> 2: o> 0\n @@ -1161,7 +1161,7 @@ Malformed upgrade request line (not exac > readline > EOF using raw connection to peer - i> write(14) -> None: + i> write(14) -> 14: i> upgrade token\n o> readline() -> 2: o> 0\n @@ -1172,7 +1172,7 @@ Malformed upgrade request line (not exac > readline > EOF using raw connection to peer - i> write(34) -> None: + i> write(34) -> 34: i> upgrade token foo=bar extra-token\n o> readline() -> 2: o> 0\n @@ -1195,17 +1195,17 @@ Upgrade request to unsupported protocol > readline > EOF using raw connection to peer - i> write(51) -> None: + i> write(51) -> 51: i> upgrade this-is-some-token proto=unknown1,unknown2\n o> readline() -> 2: o> 0\n - i> write(6) -> None: + i> write(6) -> 6: i> hello\n o> readline() -> 4: o> 384\n o> readline() -> 384: o> capabilities: lookup branchmap pushkey known getbundle unbundlehash batch changegroupsubset streamreqs=generaldelta,revlogv1 $USUAL_BUNDLE2_CAPS_SERVER$ unbundle=HG10GZ,HG10BZ,HG10UN\n - i> write(98) -> None: + i> write(98) -> 98: i> between\n i> pairs 81\n i> 0000000000000000000000000000000000000000-0000000000000000000000000000000000000000 @@ -1224,7 +1224,7 @@ Upgrade request must be followed by hell > readavailable > EOF using raw connection to peer - i> write(44) -> None: + i> write(44) -> 44: i> upgrade token proto=exp-ssh-v2-0001\n i> invalid\n o> readline() -> 1: @@ -1242,7 +1242,7 @@ Upgrade request must be followed by hell > readavailable > EOF using raw connection to peer - i> write(50) -> None: + i> write(50) -> 50: i> upgrade token proto=exp-ssh-v2-0001\n i> hello\n i> invalid\n @@ -1262,7 +1262,7 @@ Upgrade request must be followed by hell > readavailable > EOF using raw connection to peer - i> write(58) -> None: + i> write(58) -> 58: i> upgrade token proto=exp-ssh-v2-0001\n i> hello\n i> between\n @@ -1312,7 +1312,7 @@ Test listkeys for listing namespaces > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1327,11 +1327,11 @@ Test listkeys for listing namespaces o> readline() -> 1: o> \n sending listkeys command - i> write(9) -> None: + i> write(9) -> 9: i> listkeys\n - i> write(13) -> None: + i> write(13) -> 13: i> namespace 10\n - i> write(10) -> None: namespaces + i> write(10) -> 10: namespaces i> flush() -> None o> bufferedreadline() -> 3: o> 30\n @@ -1343,7 +1343,7 @@ Test listkeys for listing namespaces testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1358,11 +1358,11 @@ Test listkeys for listing namespaces o> read(1) -> 1: o> \n sending listkeys command - i> write(9) -> None: + i> write(9) -> 9: i> listkeys\n - i> write(13) -> None: + i> write(13) -> 13: i> namespace 10\n - i> write(10) -> None: namespaces + i> write(10) -> 10: namespaces i> flush() -> None o> bufferedreadline() -> 3: o> 30\n @@ -1392,7 +1392,7 @@ With no bookmarks set > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1407,11 +1407,11 @@ With no bookmarks set o> readline() -> 1: o> \n sending listkeys command - i> write(9) -> None: + i> write(9) -> 9: i> listkeys\n - i> write(12) -> None: + i> write(12) -> 12: i> namespace 9\n - i> write(9) -> None: bookmarks + i> write(9) -> 9: bookmarks i> flush() -> None o> bufferedreadline() -> 2: o> 0\n @@ -1419,7 +1419,7 @@ With no bookmarks set testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1434,11 +1434,11 @@ With no bookmarks set o> read(1) -> 1: o> \n sending listkeys command - i> write(9) -> None: + i> write(9) -> 9: i> listkeys\n - i> write(12) -> None: + i> write(12) -> 12: i> namespace 9\n - i> write(9) -> None: bookmarks + i> write(9) -> 9: bookmarks i> flush() -> None o> bufferedreadline() -> 2: o> 0\n @@ -1453,7 +1453,7 @@ With a single bookmark set > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1468,11 +1468,11 @@ With a single bookmark set o> readline() -> 1: o> \n sending listkeys command - i> write(9) -> None: + i> write(9) -> 9: i> listkeys\n - i> write(12) -> None: + i> write(12) -> 12: i> namespace 9\n - i> write(9) -> None: bookmarks + i> write(9) -> 9: bookmarks i> flush() -> None o> bufferedreadline() -> 3: o> 46\n @@ -1481,7 +1481,7 @@ With a single bookmark set testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1496,11 +1496,11 @@ With a single bookmark set o> read(1) -> 1: o> \n sending listkeys command - i> write(9) -> None: + i> write(9) -> 9: i> listkeys\n - i> write(12) -> None: + i> write(12) -> 12: i> namespace 9\n - i> write(9) -> None: bookmarks + i> write(9) -> 9: bookmarks i> flush() -> None o> bufferedreadline() -> 3: o> 46\n @@ -1516,7 +1516,7 @@ With multiple bookmarks set > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1531,11 +1531,11 @@ With multiple bookmarks set o> readline() -> 1: o> \n sending listkeys command - i> write(9) -> None: + i> write(9) -> 9: i> listkeys\n - i> write(12) -> None: + i> write(12) -> 12: i> namespace 9\n - i> write(9) -> None: bookmarks + i> write(9) -> 9: bookmarks i> flush() -> None o> bufferedreadline() -> 3: o> 93\n @@ -1546,7 +1546,7 @@ With multiple bookmarks set testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1561,11 +1561,11 @@ With multiple bookmarks set o> read(1) -> 1: o> \n sending listkeys command - i> write(9) -> None: + i> write(9) -> 9: i> listkeys\n - i> write(12) -> None: + i> write(12) -> 12: i> namespace 9\n - i> write(9) -> None: bookmarks + i> write(9) -> 9: bookmarks i> flush() -> None o> bufferedreadline() -> 3: o> 93\n @@ -1585,7 +1585,7 @@ Test pushkey for bookmarks > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1600,18 +1600,18 @@ Test pushkey for bookmarks o> readline() -> 1: o> \n sending pushkey command - i> write(8) -> None: + i> write(8) -> 8: i> pushkey\n - i> write(6) -> None: + i> write(6) -> 6: i> key 6\n - i> write(6) -> None: remote - i> write(12) -> None: + i> write(6) -> 6: remote + i> write(12) -> 12: i> namespace 9\n - i> write(9) -> None: bookmarks - i> write(7) -> None: + i> write(9) -> 9: bookmarks + i> write(7) -> 7: i> new 40\n - i> write(40) -> None: 68986213bd4485ea51533535e3fc9e78007a711f - i> write(6) -> None: + i> write(40) -> 40: 68986213bd4485ea51533535e3fc9e78007a711f + i> write(6) -> 6: i> old 0\n i> flush() -> None o> bufferedreadline() -> 2: @@ -1622,7 +1622,7 @@ Test pushkey for bookmarks testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1637,18 +1637,18 @@ Test pushkey for bookmarks o> read(1) -> 1: o> \n sending pushkey command - i> write(8) -> None: + i> write(8) -> 8: i> pushkey\n - i> write(6) -> None: + i> write(6) -> 6: i> key 6\n - i> write(6) -> None: remote - i> write(12) -> None: + i> write(6) -> 6: remote + i> write(12) -> 12: i> namespace 9\n - i> write(9) -> None: bookmarks - i> write(7) -> None: + i> write(9) -> 9: bookmarks + i> write(7) -> 7: i> new 40\n - i> write(40) -> None: 68986213bd4485ea51533535e3fc9e78007a711f - i> write(6) -> None: + i> write(40) -> 40: 68986213bd4485ea51533535e3fc9e78007a711f + i> write(6) -> 6: i> old 0\n i> flush() -> None o> bufferedreadline() -> 2: @@ -1677,7 +1677,7 @@ Phases on empty repo > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1692,11 +1692,11 @@ Phases on empty repo o> readline() -> 1: o> \n sending listkeys command - i> write(9) -> None: + i> write(9) -> 9: i> listkeys\n - i> write(12) -> None: + i> write(12) -> 12: i> namespace 6\n - i> write(6) -> None: phases + i> write(6) -> 6: phases i> flush() -> None o> bufferedreadline() -> 3: o> 15\n @@ -1705,7 +1705,7 @@ Phases on empty repo testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1720,11 +1720,11 @@ Phases on empty repo o> read(1) -> 1: o> \n sending listkeys command - i> write(9) -> None: + i> write(9) -> 9: i> listkeys\n - i> write(12) -> None: + i> write(12) -> 12: i> namespace 6\n - i> write(6) -> None: phases + i> write(6) -> 6: phases i> flush() -> None o> bufferedreadline() -> 3: o> 15\n @@ -1756,7 +1756,7 @@ Two draft heads > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1771,11 +1771,11 @@ Two draft heads o> readline() -> 1: o> \n sending listkeys command - i> write(9) -> None: + i> write(9) -> 9: i> listkeys\n - i> write(12) -> None: + i> write(12) -> 12: i> namespace 6\n - i> write(6) -> None: phases + i> write(6) -> 6: phases i> flush() -> None o> bufferedreadline() -> 4: o> 101\n @@ -1787,7 +1787,7 @@ Two draft heads testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1802,11 +1802,11 @@ Two draft heads o> read(1) -> 1: o> \n sending listkeys command - i> write(9) -> None: + i> write(9) -> 9: i> listkeys\n - i> write(12) -> None: + i> write(12) -> 12: i> namespace 6\n - i> write(6) -> None: phases + i> write(6) -> 6: phases i> flush() -> None o> bufferedreadline() -> 4: o> 101\n @@ -1825,7 +1825,7 @@ Single draft head > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1840,11 +1840,11 @@ Single draft head o> readline() -> 1: o> \n sending listkeys command - i> write(9) -> None: + i> write(9) -> 9: i> listkeys\n - i> write(12) -> None: + i> write(12) -> 12: i> namespace 6\n - i> write(6) -> None: phases + i> write(6) -> 6: phases i> flush() -> None o> bufferedreadline() -> 3: o> 58\n @@ -1855,7 +1855,7 @@ Single draft head testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1870,11 +1870,11 @@ Single draft head o> read(1) -> 1: o> \n sending listkeys command - i> write(9) -> None: + i> write(9) -> 9: i> listkeys\n - i> write(12) -> None: + i> write(12) -> 12: i> namespace 6\n - i> write(6) -> None: phases + i> write(6) -> 6: phases i> flush() -> None o> bufferedreadline() -> 3: o> 58\n @@ -1892,7 +1892,7 @@ All public heads > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1907,11 +1907,11 @@ All public heads o> readline() -> 1: o> \n sending listkeys command - i> write(9) -> None: + i> write(9) -> 9: i> listkeys\n - i> write(12) -> None: + i> write(12) -> 12: i> namespace 6\n - i> write(6) -> None: phases + i> write(6) -> 6: phases i> flush() -> None o> bufferedreadline() -> 3: o> 15\n @@ -1920,7 +1920,7 @@ All public heads testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -1935,11 +1935,11 @@ All public heads o> read(1) -> 1: o> \n sending listkeys command - i> write(9) -> None: + i> write(9) -> 9: i> listkeys\n - i> write(12) -> None: + i> write(12) -> 12: i> namespace 6\n - i> write(6) -> None: phases + i> write(6) -> 6: phases i> flush() -> None o> bufferedreadline() -> 3: o> 15\n @@ -1959,7 +1959,7 @@ Setting public phase via pushkey > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -1974,20 +1974,20 @@ Setting public phase via pushkey o> readline() -> 1: o> \n sending pushkey command - i> write(8) -> None: + i> write(8) -> 8: i> pushkey\n - i> write(7) -> None: + i> write(7) -> 7: i> key 40\n - i> write(40) -> None: 7127240a084fd9dc86fe8d1f98e26229161ec82b - i> write(12) -> None: + i> write(40) -> 40: 7127240a084fd9dc86fe8d1f98e26229161ec82b + i> write(12) -> 12: i> namespace 6\n - i> write(6) -> None: phases - i> write(6) -> None: + i> write(6) -> 6: phases + i> write(6) -> 6: i> new 1\n - i> write(1) -> None: 0 - i> write(6) -> None: + i> write(1) -> 1: 0 + i> write(6) -> 6: i> old 1\n - i> write(1) -> None: 1 + i> write(1) -> 1: 1 i> flush() -> None o> bufferedreadline() -> 2: o> 2\n @@ -1997,7 +1997,7 @@ Setting public phase via pushkey testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -2012,20 +2012,20 @@ Setting public phase via pushkey o> read(1) -> 1: o> \n sending pushkey command - i> write(8) -> None: + i> write(8) -> 8: i> pushkey\n - i> write(7) -> None: + i> write(7) -> 7: i> key 40\n - i> write(40) -> None: 7127240a084fd9dc86fe8d1f98e26229161ec82b - i> write(12) -> None: + i> write(40) -> 40: 7127240a084fd9dc86fe8d1f98e26229161ec82b + i> write(12) -> 12: i> namespace 6\n - i> write(6) -> None: phases - i> write(6) -> None: + i> write(6) -> 6: phases + i> write(6) -> 6: i> new 1\n - i> write(1) -> None: 0 - i> write(6) -> None: + i> write(1) -> 1: 0 + i> write(6) -> 6: i> old 1\n - i> write(1) -> None: 1 + i> write(1) -> 1: 1 i> flush() -> None o> bufferedreadline() -> 2: o> 2\n @@ -2066,7 +2066,7 @@ Test batching of requests > EOF testing ssh1 creating ssh peer from handshake results - i> write(104) -> None: + i> write(104) -> 104: i> hello\n i> between\n i> pairs 81\n @@ -2081,13 +2081,13 @@ Test batching of requests o> readline() -> 1: o> \n sending batch with 3 sub-commands - i> write(6) -> None: + i> write(6) -> 6: i> batch\n - i> write(4) -> None: + i> write(4) -> 4: i> * 0\n - i> write(8) -> None: + i> write(8) -> 8: i> cmds 61\n - i> write(61) -> None: heads ;listkeys namespace=bookmarks;listkeys namespace=phases + i> write(61) -> 61: heads ;listkeys namespace=bookmarks;listkeys namespace=phases i> flush() -> None o> bufferedreadline() -> 4: o> 278\n @@ -2103,7 +2103,7 @@ Test batching of requests testing ssh2 creating ssh peer from handshake results - i> write(171) -> None: + i> write(171) -> 171: i> upgrade * proto=exp-ssh-v2-0001\n (glob) i> hello\n i> between\n @@ -2118,13 +2118,13 @@ Test batching of requests o> read(1) -> 1: o> \n sending batch with 3 sub-commands - i> write(6) -> None: + i> write(6) -> 6: i> batch\n - i> write(4) -> None: + i> write(4) -> 4: i> * 0\n - i> write(8) -> None: + i> write(8) -> 8: i> cmds 61\n - i> write(61) -> None: heads ;listkeys namespace=bookmarks;listkeys namespace=phases + i> write(61) -> 61: heads ;listkeys namespace=bookmarks;listkeys namespace=phases i> flush() -> None o> bufferedreadline() -> 4: o> 278\n