[PATCH 1 of 4] Add a test for getting raw files via the web UI
Bryan O'Sullivan
bos at serpentine.com
Fri Jun 30 15:23:27 UTC 2006
On Thu, 2006-06-29 at 19:14 -0700, Eric Hopper wrote:
> +hg commit -m "Just some text"
> +hg serve -p 20059 -A access.log -E error.log -d --pid-file=hg.pid
> +("$TESTDIR/get-with-headers.py" localhost:20059 '/?f=f165dc289438;file=sometext.txt;style=raw' content-type content-length content-disposition) >getoutput.txt &
This test looks brittle to me. The reason I ask is that you're
committing the changeset without a fixed date (look at all the other
uses of "commit -d '1 0' and so on), so the changeset hash will change
every time the test is run. If someone else extends the test later and
doesn't notice this, they'll probably turn it into something that only
passes once :-)
<b
More information about the Mercurial
mailing list