[issue1543] Improve hg serve to make testing easier

4 views
Skip to first unread message

Marcus Lindblom

unread,
Mar 8, 2009, 8:42:46 AM3/8/09
to mercuri...@selenic.com

New submission from Marcus Lindblom <ma...@yar.nu>:

The Mercurial tests for BuildBot are a bit more complicated than necessary due
to two facts:
1. Output isn't flushed, so we can't know when it's up and running (i.e. read
'Listening to port xxxx....')
2. Not being able to pick a free random port, using --port=0 (or something), so
we have to choose one and hope that it's free. (currently using 8300 + getpid()
% 300)

This makes it easier to programmatically launch hg serve and interact with it in
BuildBot's unit tests.

----------
messages: 8770
nosy: marcusl
priority: wish
status: unread
title: Improve hg serve to make testing easier

____________________________________________________
Mercurial issue tracker <mercuri...@selenic.com>
<http://www.selenic.com/mercurial/bts/issue1543>
____________________________________________________

_______________________________________________
Mercurial-devel mailing list
Mercuri...@selenic.com
http://selenic.com/mailman/listinfo/mercurial-devel

Reply all
Reply to author
Forward
0 new messages