diff --git a/tests/test-commandserver.py b/tests/test-commandserver.py
index ce0ad184f489edb292034130b0d69e117f0ee390_dGVzdHMvdGVzdC1jb21tYW5kc2VydmVyLnB5..6ecf5fb2a475c5bab0b218fdedaf0a3b01e66a4e_dGVzdHMvdGVzdC1jb21tYW5kc2VydmVyLnB5 100644
--- a/tests/test-commandserver.py
+++ b/tests/test-commandserver.py
@@ -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)
diff --git a/tests/test-commandserver.py.out b/tests/test-commandserver.py.out
index ce0ad184f489edb292034130b0d69e117f0ee390_dGVzdHMvdGVzdC1jb21tYW5kc2VydmVyLnB5Lm91dA==..6ecf5fb2a475c5bab0b218fdedaf0a3b01e66a4e_dGVzdHMvdGVzdC1jb21tYW5kc2VydmVyLnB5Lm91dA== 100644
--- a/tests/test-commandserver.py.out
+++ b/tests/test-commandserver.py.out
@@ -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)