openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #13697
Re: [OpenStack][Nova] No tests available in custom branch
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
directory perfectly, except connection.py.
On Tue, Jun 26, 2012 at 4:28 PM, Kevin L. Mitchell <
kevin.mitchell@xxxxxxxxxxxxx> wrote:
> 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
> absolute. This is why I suggest that you should always call
> run_tests.sh from the top-level of the repository, not from the nova
> subdirectory…
> --
> Kevin L. Mitchell <kevin.mitchell@xxxxxxxxxxxxx>
>
>
Follow ups
References
-
Re: [OpenStack][Nova] No tests available in custom branch
From: Leander Bessa Beernaert, 2012-06-25
-
Re: [OpenStack][Nova] No tests available in custom branch
From: Joseph Suh, 2012-06-25
-
Re: [OpenStack][Nova] No tests available in custom branch
From: Leander Bessa Beernaert, 2012-06-25
-
Re: [OpenStack][Nova] No tests available in custom branch
From: Brian Waldon, 2012-06-25
-
Re: [OpenStack][Nova] No tests available in custom branch
From: Leander Bessa Beernaert, 2012-06-25
-
Re: [OpenStack][Nova] No tests available in custom branch
From: Kevin L. Mitchell, 2012-06-25
-
Re: [OpenStack][Nova] No tests available in custom branch
From: Leander Bessa Beernaert, 2012-06-26
-
Re: [OpenStack][Nova] No tests available in custom branch
From: Kevin L. Mitchell, 2012-06-26
-
Re: [OpenStack][Nova] No tests available in custom branch
From: Leander Bessa Beernaert, 2012-06-26
-
Re: [OpenStack][Nova] No tests available in custom branch
From: Kevin L. Mitchell, 2012-06-26
-
Re: [OpenStack][Nova] No tests available in custom branch
From: Leander Bessa Beernaert, 2012-06-26
-
Re: [OpenStack][Nova] No tests available in custom branch
From: Kevin L. Mitchell, 2012-06-26
-
Re: [OpenStack][Nova] No tests available in custom branch
From: Leander Bessa Beernaert, 2012-06-26
-
Re: [OpenStack][Nova] No tests available in custom branch
From: Kevin L. Mitchell, 2012-06-26