-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When trying to test a bug the cinder test framework was running all the tests when I just wanted one to run. Instead of fixing this problem in nose I tried to move cinder to testr. I copied a fair bit of code from nova to get this to work. This way at least if some one makes an improvement to the nova test framework cinder can improve here also. Note that now all the tests a thread safe. Added a concurrency argument to run_tests.sh that defaults to 1. You can specify your own level then and take the risk of intermittent failures. Tell jenkins to use a concurrency level of 1 to avoid failing gate jobs. Note One of these tests is broken and I have disabled for now. There is a bug for this here: https://bugs.launchpad.net/cinder/+bug/1173266 Note: cinder.api.openstack.FaultWrapper is deprecated and is causing a circular import when I try and import cinder.tests.test_wsgi. This is fixed by only importing the openstack.FaultWrapper during the __init__ phase of the wsgi middleware. Fixes: bug 1183434 Fixes: bug 1177924 Change-Id: I5e10b55c5b236eb81a6a3e0e9ea56af8ca4ef8e1
- Loading branch information
Michael Kerrin
committed
Jun 14, 2013
1 parent
0a26b70
commit 930f589
Showing
16 changed files
with
630 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[DEFAULT] | ||
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \ | ||
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \ | ||
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \ | ||
${PYTHON:-python} -m subunit.run discover -t ./ ./cinder/tests $LISTOPT $IDOPTION | ||
|
||
test_id_option=--load-list $IDFILE | ||
test_list_option=--list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.