Ask Your Question
0

tools/with_venv.sh: line 13: testr: command not found

asked 2013-04-25 21:55:05 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I'm trying to setup openstack nova dev environment. I've successfully installed devstack from the trunk and played around. However, I cannot get run_tests.sh to execute to completion.

Steps I followed:


Installed Ubuntu 12.04 
git clone https:/github.com/openstack/nova.git 
cd nova; run_tests.sh
 

I get the following error:

tools/with_venv.sh: line 13: testr: command not found 

Any idea how/where can I get testr? testr seems like bash function more so than a command.

Any help appreciated! Thanks, -Jay

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
4

answered 2013-04-26 03:21:47 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Jay,

You need to install all the packages in nova/tools/test-requires to be able to run tests. The error you are getting is because of the fact that the 'testrepository' package is not installed. You can install it using the 'pip install testrepository>=0.0.13' command. You also need to install any other missing packages mentioned in nova/tools/test-requires

Note: you can read more about testr here https://wiki.openstack.org/wiki/Testr.

edit flag offensive delete link more

Comments

Thanks very helpful :)

RomilGupta gravatar imageRomilGupta ( 2014-01-22 03:59:07 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-04-25 21:55:05 -0500

Seen: 1,338 times

Last updated: Apr 26 '13