Ask Your Question
0

Failed to execute run_tests.sh

asked 2013-03-08 06:56:11 -0500

flwang gravatar image

When execute <nova>/run_tests.sh on Ubuntu 12.10 64bit, I got bolew error:

stacker@stacker-ThinkPad-X230:~/workspace_community/nova$ ./run_tests.sh -N Running python setup.py testr --slowest --testr-args='--subunit ' usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help

error: invalid command 'testr'


Ran 0 tests in 0.214s

OK cp: cannot stat `.testrepository/-1': No such file or directory

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2013-03-08 23:54:50 -0500

dims-v gravatar image

flwang,

please try to remove directories named .venv .tox .testrepository and try again?

-- dims

edit flag offensive delete link more
0

answered 2013-03-14 12:50:18 -0500

alaski gravatar image

By running ./run_tests.sh with the -N you're asking it to not run in a virtual environment, and that appears to bypass its installation of required libraries. If you're fine running in a virtual environment just drop the -N, or you can install the dependencies needed by running 'pip install -r tools/pip-requires' and 'pip install -r tools/test-requires'. That will install testrepository which is where the testr command comes from.

edit flag offensive delete link more
0

answered 2013-12-18 06:44:39 -0500

you can running 'pip install -r requirements.txt' and 'pip install -r test-requirements.txt' first, and then running './run_test -N' is OK

edit flag offensive delete link more

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

1 follower

Stats

Asked: 2013-03-08 06:56:11 -0500

Seen: 69 times

Last updated: Dec 18 '13