[openstack-dev] [gantt] How to include nova modules in unit tests
Dugger, Donald D
donald.d.dugger at intel.com
Tue Jan 21 22:57:33 UTC 2014
I almost have the unit tests for gantt working except for one problem - is there a way to have the test infrastructure allow the gantt tree to import objects from the nova tree.
The problem is that we want to break out just the scheduler code into the gantt tree without duplicating all of nova. The current scheduler has many imports of nova objects, which is not a problem except for the unit tests. The unit tests run in an environment that doesn't include the nova tree so all of those imports wind up failing.
Adding `nova' to the `test-requirements.txt' file doesn't work because this causes the test system to look for a tar ball at `http://pypi.python.org/simple/nova/' and there isn't a tarball there, just a link to the openstack home page.
I can get the unit tests working in my local tree by putting in a symlink to the nova directory but that doesn't seem like a real solution for Jenkins.
Anyone have an ideas on how to address this?
--
Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale
Ph: 303/443-3786
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140121/94248e51/attachment.html>
More information about the OpenStack-dev
mailing list