Ask Your Question
0

run_tests.sh: "unrecongnized arguments" error

asked 2015-01-12 03:57:10 -0500

fhussain gravatar image

Hi,

I have installed devstack on Ubuntu 14.04 LTS, successfully. I need to run the script run_tests.sh to create an example dashboard in Horizon. I am following this tutorial: http://docs.openstack.org/developer/horizon/topics/tutorial.html

However, when I run the this command to create a dashboard ,

./run_tests.sh -m startdash mydashboard openstack_dashboard/dashboard/mydashboard

I get this error:

bash8.py: error: unrecognized arguments: -m

Please help me resolve the issue.p

edit retag flag offensive close merge delete

Comments

could you paste the run_test.sh to paste.openstack.org?

9lives gravatar image9lives ( 2015-01-12 04:54:18 -0500 )edit

I have pasted the run_test.sh to paste.openstack.org . Paste #156437.

fhussain gravatar imagefhussain ( 2015-01-12 05:23:38 -0500 )edit

which version of devstack are you using? i cannot find the bash8.py anymore in the master branch, could you paste the bash8.py to paste.openstack.org and paste the link here?

9lives gravatar image9lives ( 2015-01-12 08:02:04 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-13 13:09:02 -0500

alop gravatar image

Lets say I only wanted to test libvirt driver, the test file lives in nova/tests/virt/libvirt/test_driver.py I would run tests like this:

./run_tests.sh nova.tests.virt.libvirt.test_driver This will run all the tests inside test_driver.py If I wanted to run all the libvirt tests, I'd do ./run_tests.sh nova.tests.virt.libvirt

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: 2015-01-12 03:57:10 -0500

Seen: 348 times

Last updated: Jan 13 '15