[PATCH 5 of 5 RFC] tests: add --cmdserver option to run tests using the command server

Idan Kamara idankk86 at gmail.com
Sat Jun 4 12:32:22 CDT 2011


On Fri, Jun 3, 2011 at 11:04 PM, Idan Kamara <idankk86 at gmail.com> wrote:

> # HG changeset patch
> # User Idan Kamara <idankk86 at gmail.com>
> # Date 1307131444 -10800
> # Node ID c11b6d6fb1788f8fdffa0c249c0e5b54cf0178b8
> # Parent  1a75ec54cf1092c2e3690511b54d2bf941c974de
> tests: add --cmdserver option to run tests using the command server
>
> for now this uses the (seemingly fragile) --with-hg option to run-tests.
>
> alot of tests are failing:
> - changes to the ui object aren't reflected in the repo ui. that makes
> things
> like -v and --config not work when accessed through the repo ui.
>

This is tricky. I haven't got a clean solution for this yet. For now I'm
reloading the repo ui on every
dispatch call.


> - interactive tests don't work.
>

Partly fixed this by adding input channels.


> - some output is misordered, stderr presumably. see test-586 for instance.


Flushing the client streams in hglib after reading from the server fixed
this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110604/40b8aa8d/attachment.htm>


More information about the Mercurial-devel mailing list