I have never tested it on a machine which doesn't have libvirt, i'll get back to you on that.<div><br></div><div>I've ran "tox -v -epy27" and it produced this ouput</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
----------------------------------------------------------------------<br>Ran 0 tests in 0.001s<br>OK<br>_____________________________________________________________________________________________________ summary _____________________________________________________________________________________________________<br>
  py27: commands succeeded<br>  congratulations :)</blockquote><div><br></div><div>and this is the output produced by "tox -v -efull":</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
----------------------------------------------------------------------<br>Ran 3046 tests in 217.842s<br>OK (SKIP=5)<br>Exception KeyError: KeyError(25433840,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored<br>
_____________________________________________________________________________________________________ summary _____________________________________________________________________________________________________<br>  full: commands succeeded<br>
  congratulations :)</blockquote></div><div><br></div><div>I think the problem still remains :S</div><br><div class="gmail_quote">On Mon, Jul 2, 2012 at 4:48 PM, Monty Taylor <span dir="ltr"><<a href="mailto:mordred@inaugust.com" target="_blank">mordred@inaugust.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Run:<br>
<br>
  sudo pip install tox<br>
<br>
And you will get the tox command.<br>
<br>
Does ./run_tests.sh -N nova.tests.test_libvirt work fine when you<br>
_don't_ have libvirt? It needs to skip the test if you don't have<br>
libvirt installed, and it needs to run it and pass if you do.<br>
<br>
Jenkins is going to run "tox -v -epy27" and then eventually also "tox -v<br>
-efull" - so make sure both of those work and you'll be set.<br>
<span class="HOEnZb"><font color="#888888"><br>
Monty<br>
</font></span><div class="im HOEnZb"><br>
On 07/02/2012 10:30 AM, Leander Bessa Beernaert wrote:<br>
> Running with " ./run_tests.sh -N nova.tests.test_libvirt" works just<br>
> fine, however i don't know if this is enough to get it past jenkins :/<br>
><br>
> On Mon, Jul 2, 2012 at 3:26 PM, Daniel P. Berrange <<a href="mailto:berrange@redhat.com">berrange@redhat.com</a><br>
</div><div class="HOEnZb"><div class="h5">> <mailto:<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>>> wrote:<br>
><br>
>     On Mon, Jul 02, 2012 at 01:43:31PM +0100, Leander Bessa Beernaert wrote:<br>
>     > So, if no system packages can be imported, how do you test the<br>
>     "connection"<br>
>     > class for the libvirt driver?<br>
>     ><br>
>     > How does that particular test case wrap around the fact that it<br>
>     requires<br>
>     > the libvirt module? The only thing i could find are these lines of<br>
>     code in<br>
>     > the driver's __init__ method. Do these somehow detect if this is a<br>
>     unit<br>
>     > test environment and import the fakelibvirt driver instead? I'm no<br>
>     expert<br>
>     > in python so i'm not sure what's happening there :s<br>
>     ><br>
>     > > global libvirt<br>
>     > > if libvirt is None:<br>
>     > >     libvirt = __import__('libvirt')<br>
><br>
>     If you have installed all the neccessary python packages on your<br>
>     local host, then it is entirely possible to run the Nova test<br>
>     suites without using virtualenv. You just need to pass the '-N'<br>
>     arg to the run_tests.sh script, eg on my Fedora 17 host, I can<br>
>     run<br>
><br>
>        ./run_tests.sh -N nova.tests.test_libvirt<br>
><br>
>     Regards,<br>
>     Daniel<br>
>     --<br>
>     |: <a href="http://berrange.com" target="_blank">http://berrange.com</a>      -o-<br>
>      <a href="http://www.flickr.com/photos/dberrange/" target="_blank">http://www.flickr.com/photos/dberrange/</a> :|<br>
>     |: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a>              -o-<br>
>     <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a> :|<br>
>     |: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a>       -o-<br>
>     <a href="http://search.cpan.org/~danberr/" target="_blank">http://search.cpan.org/~danberr/</a> :|<br>
>     |: <a href="http://entangle-photo.org" target="_blank">http://entangle-photo.org</a>       -o-<br>
>     <a href="http://live.gnome.org/gtk-vnc" target="_blank">http://live.gnome.org/gtk-vnc</a> :|<br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>