<br><br><div class="gmail_quote">On Wed, Jun 24, 2009 at 4:31 AM, Vincent Ladeuil <span dir="ltr"><<a href="mailto:v.ladeuil%2Blp@free.fr">v.ladeuil+lp@free.fr</a>></span> wrote:<br><br><snip><br><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
cert_file: /usr/lib/python2.6/dist-packages/bzrlib/tests/ssl_certs/server.crt<br>
<br>
I bet that file doesn't exist on your machine right (they don't<br>
on mine at least) ?<br>
<br>
So what we have here is :<br>
<br>
- a bug in the test server, it shouldn't fail to start<br>
*silently*. And the test setUp should just abort if the server<br>
can't be started.<br>
<br>
- packaging bug, these test can't be run without these files,<br>
they seems to be included in the tarball though, so I suspect<br>
they are lost at installation time,<br>
<br>
Now, if you create copy the content from the ssl_certs directory<br>
from the bzr sources, the tests should pass.<br>
<font color="#888888"><br>
Vincent<br>
</font></blockquote></div><br><br>You are exactly correct. I thought I would be clever and run create_ssls.py myself to create server and ca certs. That did not go so well... so maybe the tests are hard-coded to particular pre-generated certs. So I just copied the certs from the bzr sources as you suggested and voila! A 'bzr selftest test_http' runs to completeion (and passes). <br>
<br>So you appear to be correct about both bugs. You figured out what was going on, so you get first right of refusal to write them up. If you prefer, I'll do the typing. Either way is great, so long as we make sure they get logged.<br>
<br>Thanks!<br>-M<br><br>