Commit Graph

6 Commits

Author SHA1 Message Date
Stephen Finucane 450bacb04a Retire gantt
Change-Id: I8b84f777bf977d2a3dbba4b2ef61c9380205a049
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2019-01-11 10:44:08 +00:00
Don Dugger 71411726d6 Change various nova references to gantt in config files
This file was copied from the nova tree, remove some nova specific info.

Need to keep the gettextutils reference.

Update the setup.cfg file also.

Change-Id: I0cb66e6620900fd318f45d758a94f95b144e006a
Signed-off-by: Don Dugger <donald.d.dugger@intel.com>
2014-01-05 14:46:46 -07:00
Joshua Hesketh 941f9698dd Fix tests to work with mysql+postgres concurrently
Optimise tests.db.test_migrations and tests.db.test_migration_utils for
concurrency and make opportunistic tests obey walk_style configurations.

Closes-Bug: 1207750

Change-Id: Idb30f144fb67aefc58749897d774103c3c0ec640
2013-10-27 09:46:45 +11:00
Roman Podolyaka 196ec8853c Make testr preserve existing OS_* env vars values
Values for OS_TEST_TIMEOUT, OS_STDOUT_CAPTURE and OS_STDERR_CAPTURE
environment variables are fixed in .testr.conf now. It should be possible
to override them for each tox/runtests.sh call or for the current shell
session without making changes to .testr.conf.

Fixes bug 1182416.

Change-Id: I6c7839fa78b53ac8ea358ce0143a00931da96a9e
2013-05-29 11:55:49 +03:00
Clark Boylan 89833323bb Invert test stream capture logic for debugging.
Previously the default test behavior was to capture stdout and stderr.
Make the new default to not capture stdout and stderr then set
.testr.conf to always capture these streams when running tests under
testr.

The motiviation behind this change is that you will want these streams
to be captured when running under testr, but when not running under
testr you may not want to capture them. An example of this would be
running `python -m testtools.run test_name` with a change to test_name
to invoke the python debugger (capturing stdout and stderr interferes
with normal debugger functionality).

Also, only invoke the test timeout by default when running under testr.
This is done for the same reason as above. When running a test under the
debugger the timeout interferes with debugging.

Change-Id: I42cbbdadb2f221ec439e92a6800d14e8436bb77b
2013-01-07 11:03:30 -08:00
Clark Boylan e8a6ff7c5b Use testr to run nova unittests.
Convert nova from using nosetests to testr for its test runner. Some
tests had to be modified to get them to run properly under testr.

run_tests.sh has been updated to run testr instead of nosetests.

Coverage is collected by running subunit.run under coverage.py when the
coverage environment is selected.

Note that you will need to rebuild your virtualenvs as nose is being
removed from the dependency lists and is being replaced by testr. Tests
will run in different processes once this test is merged so you cannot
use test classes to pass information between tests. Each test should be
a proper independent unit. Additionally the -x and -d flags to
run_tests.sh have been removed as there are currently no decent
approximations for those functions.

Change-Id: I019ca098972ca749b195f59968cf21edd5ba9109
2012-12-14 14:22:20 -08:00