Mercurial > hg
changeset 16117:6ecf5fb2a475 stable
test-commandserver: flush stdout
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Thu, 16 Feb 2012 01:23:45 +0200 |
parents | ce0ad184f489 |
children | d554a3dcae5a |
files | tests/test-commandserver.py tests/test-commandserver.py.out |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-commandserver.py Thu Feb 16 01:21:34 2012 +0200 +++ b/tests/test-commandserver.py Thu Feb 16 01:23:45 2012 +0200 @@ -27,6 +27,7 @@ def runcommand(server, args, output=sys.stdout, error=sys.stderr, input=None): print ' runcommand', ' '.join(args) + sys.stdout.flush() server.stdin.write('runcommand\n') writeblock(server, '\0'.join(args)) @@ -56,6 +57,7 @@ print print 'testing %s:' % func.__name__ print + sys.stdout.flush() server = connect(repopath) try: return func(server)
--- a/tests/test-commandserver.py.out Thu Feb 16 01:21:34 2012 +0200 +++ b/tests/test-commandserver.py.out Thu Feb 16 01:23:45 2012 +0200 @@ -4,10 +4,10 @@ o, 'capabilities: getencoding runcommand\nencoding: ***' runcommand id 000000000000 tip -abort: unknown command unknowncommand testing unknowncommand: +abort: unknown command unknowncommand testing checkruncommand: @@ -134,11 +134,11 @@ 3: draft runcommand phase -r . 3: public -no phases changed testing rollback: runcommand phase -r . -p +no phases changed runcommand commit -Am. runcommand rollback repository tip rolled back to revision 3 (undo commit)