Skip to content
Snippets Groups Projects
Commit 6ecf5fb2a475 authored by Idan Kamara's avatar Idan Kamara
Browse files

test-commandserver: flush stdout

parent ce0ad184f489
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -4,7 +4,6 @@
o, 'capabilities: getencoding runcommand\nencoding: ***'
runcommand id
000000000000 tip
abort: unknown command unknowncommand
testing unknowncommand:
......@@ -8,6 +7,7 @@
testing unknowncommand:
abort: unknown command unknowncommand
testing checkruncommand:
......@@ -134,8 +134,7 @@
3: draft
runcommand phase -r .
3: public
no phases changed
testing rollback:
runcommand phase -r . -p
......@@ -138,7 +137,8 @@
testing rollback:
runcommand phase -r . -p
no phases changed
runcommand commit -Am.
runcommand rollback
repository tip rolled back to revision 3 (undo commit)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment