Initial nose hiccup with tempest
I had checkout openstack tempest code and had created a virtual-env while on the master branch using run_tempest.sh.
testr and testtools would run fine with it, but whenever i wanted to run testtools on stable/havana branch , i used to get the below not-so-helpful error:
(.venv)ubuntu@blr-ubuntu-build4:~/tempest1/tempest$ python -m testtools.run tempest.api.network.test_networks
2014-04-12 23:22:29.634 11352 INFO tempest [-] Using tempest config file /home/ubuntu/tempest1/tempest/etc/tempest.conf
2014-04-12 23:22:29.985 11352 CRITICAL tempest [-] 'module' object has no attribute 'test_networks'
(.venv)ubuntu@blr-ubuntu-build4:~/tempest1/tempest$
After pdb-ing , I realised that in the master branch, they have stopped using nose, but in stable/havana branch, nose is still being referred.
(Pdb) n
ImportError: 'No module named nose.plugins.attrib'
> /home/ubuntu/tempest1/tempest/tempest/api/network/base.py(25)<module>()
-> import tempest.test
(Pdb) c
2014-04-12 23:55:03.435 11579 CRITICAL tempest [-] 'module' object has no attribute 'test_networks'
(.venv)ubuntu@blr-ubuntu-build4:~/tempest1/tempest$
Once I did a pip install of nose, things started to work fine with testtools!
No comments:
Post a Comment