Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-26 Thread Leander Bessa Beernaert
I've managed to fix it by removing the "import libvirt" from diagnostics.py. I've got the answer to this through sdague in the openstack-dev irc channel. I'ts now running :) On Tue, Jun 26, 2012 at 4:44 PM, Kevin L. Mitchell < kevin.mitch...@rackspace.com> wrote: > On Tue, 2012-06-26 at 16:33 +01

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-26 Thread Kevin L. Mitchell
On Tue, 2012-06-26 at 16:33 +0100, Leander Bessa Beernaert wrote: > I'm not calling run_tests.sh from the nova subdirectory. I'm saying > that from the location where nova_tests.sh is located, i can import > connection.py. > However, when i try to import connection.py from with > cd=nova/virt/libvi

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-26 Thread Leander Bessa Beernaert
I'm not calling run_tests.sh from the nova subdirectory. I'm saying that from the location where nova_tests.sh is located, i can import connection.py. However, when i try to import connection.py from with cd=nova/virt/libvirt, it fails. The funny thing is i can import all the modules int that direc

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-26 Thread Kevin L. Mitchell
On Tue, 2012-06-26 at 16:21 +0100, Leander Bessa Beernaert wrote: > It works from the top level, but fails if i try to import it directly > from the same dir (nova/virt/libvirt). The other files there import > just fine :/ Relative imports are iffy at best; imports should ideally always be absolut

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-26 Thread Leander Bessa Beernaert
It works from the top level, but fails if i try to import it directly from the same dir (nova/virt/libvirt). The other files there import just fine :/ On Tue, Jun 26, 2012 at 4:17 PM, Kevin L. Mitchell < kevin.mitch...@rackspace.com> wrote: > On Tue, 2012-06-26 at 16:05 +0100, Leander Bessa Beern

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-26 Thread Kevin L. Mitchell
On Tue, 2012-06-26 at 16:05 +0100, Leander Bessa Beernaert wrote: > The file, is right there in the same directory. I have double checked > the names but it still keeps failing :s The first thing I'd try is clearing out all your *.pyc files. (run_tests.sh should do this for you, so I don't expect

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-26 Thread Leander Bessa Beernaert
You sir are my hero! File "", line 1, in > File "connection.py", line 73, in > from nova.virt.libvirt import diagnostics > ImportError: cannot import name diagnostics The file, is right there in the same directory. I have double checked the names but it still keeps failing :s On Tue,

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-26 Thread Kevin L. Mitchell
On Tue, 2012-06-26 at 15:50 +0100, Leander Bessa Beernaert wrote: > I've successfully imported the diagnostics.py in the interpreter, so > that can't be the problem. Then try importing the other file you modified. If that still doesn't help you find the problem, then I'm all out of ideas… -- Kev

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-26 Thread Leander Bessa Beernaert
I've successfully imported the diagnostics.py in the interpreter, so that can't be the problem. On Tue, Jun 26, 2012 at 3:40 PM, Kevin L. Mitchell < kevin.mitch...@rackspace.com> wrote: > On Tue, 2012-06-26 at 09:36 +0100, Leander Bessa Beernaert wrote: > > Any ideas? > > My gut instinct is that

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-26 Thread Kevin L. Mitchell
On Tue, 2012-06-26 at 09:36 +0100, Leander Bessa Beernaert wrote: > Any ideas? My gut instinct is that you have a syntax error as well, somewhere in diagnostics.py. Try running the python interpreter and manually trying that import; if it fails, you should have an error message that will help yo

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-26 Thread Leander Bessa Beernaert
I'v tried doing those modifications directly on the master branch, just to see if the tests would run. Sadly, i get the same output. Am i supposed to change something when adding new files before running the tests? On Tue, Jun 26, 2012 at 9:36 AM, Leander Bessa Beernaert < leande...@gmail.com> wr

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-26 Thread Leander Bessa Beernaert
Performing the alteration you suggested did not change anything, the output from "run_tests.sh" is still the same: ./run_tests.sh > > -- > Ran 0 tests in 0.000s > OK > Running PEP8 and HACKING compliance check... > 4 imports missi

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-25 Thread Kevin L. Mitchell
On Mon, 2012-06-25 at 16:56 +0100, Leander Bessa Beernaert wrote: > Here's the diff http://paste.openstack.org/show/18756/ Change "import diagnostics" to "from nova.virt.libvirt import diagnostics". (Also note that you may need to add a space between your name and your email address in Authors, a

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-25 Thread Leander Bessa Beernaert
gt;> (c) 571-340-2434 >> (f) 703-812-3712 >> 3811 N. Fairfax Drive Suite 200 >> Arlington, VA, 22203, USA >> http://www.east.isi.edu/~jsuh >> >> - Original Message - >> From: "Leander Bessa Beernaert" >> To: "Joseph Suh"

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-25 Thread Brian Waldon
"Leander Bessa Beernaert" > To: "Joseph Suh" > Cc: openstack@lists.launchpad.net > Sent: Monday, June 25, 2012 9:45:51 AM > Subject: Re: [Openstack] [OpenStack][Nova] No tests available in custom branch > > I've tried all the options and the output is alway

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-25 Thread Leander Bessa Beernaert
ssage - > From: "Leander Bessa Beernaert" > To: "Joseph Suh" > Cc: openstack@lists.launchpad.net > Sent: Monday, June 25, 2012 9:45:51 AM > Subject: Re: [Openstack] [OpenStack][Nova] No tests availa

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-25 Thread Joseph Suh
- From: "Leander Bessa Beernaert" To: "Joseph Suh" Cc: openstack@lists.launchpad.net Sent: Monday, June 25, 2012 9:45:51 AM Subject: Re: [Openstack] [OpenStack][Nova] No tests available in custom branch I've tried all the options and the output is al

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-25 Thread Leander Bessa Beernaert
> (f) 703-812-3712 > 3811 N. Fairfax Drive Suite 200 > Arlington, VA, 22203, USA > http://www.east.isi.edu/~jsuh > > - Original Message - > From: "Leander Bessa Beernaert" > To: openstack@lists.launchpad.net > Sent: Monday, June 25, 2012 9:13:43 AM > Subje

Re: [Openstack] [OpenStack][Nova] No tests available in custom branch

2012-06-25 Thread Joseph Suh
ander Bessa Beernaert" To: openstack@lists.launchpad.net Sent: Monday, June 25, 2012 9:13:43 AM Subject: [Openstack] [OpenStack][Nova] No tests available in custom branch Hello, I've created a separate branch in Nova to test my code out. However, every time i attempt to run the comman