Run tests with default concurrency 0

Setting concurrency to 0 would enable Glance tests to be run using the
the total number of cores on the system rather than by a single one.

This would, by default, speed up the run time of tests for developers
who are not aware about it. Also, any jobs which run these tests for
Continuous Integration would be benefitted without having to deal with
the machine level logic.

Closes-Bug: #1368274

Change-Id: I0842b0c0be1272d479fad9ef7609cd8a29231cb5
This commit is contained in:
Oleksii Chuprykov 2014-09-11 19:02:38 +03:00
parent e518ab629b
commit 868fd6e383
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ function usage {
echo " --tools-path <dir> Location of the tools directory"
echo " Default: \$(pwd)"
echo " --concurrency <concurrency> How many processes to use when running the tests. A value of 0 autodetects concurrency from your CPU count"
echo " Default: 1"
echo " Default: 0"
echo ""
echo "Note: with no options specified, the script will try to run the tests in a virtual environment,"
echo " If no virtualenv is found, the script will ask if you would like to create one. If you "
@ -85,7 +85,7 @@ no_pep8=0
coverage=0
debug=0
update=0
concurrency=1
concurrency=0
LANG=en_US.UTF-8
LANGUAGE=en_US:en

View File

@ -10,7 +10,7 @@ install_command = pip install --allow-all-external --allow-insecure netaddr -U {
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python -m glance.openstack.common.lockutils python setup.py test --slowest \
--testr-args='--concurrency 1 {posargs}'
--testr-args='--concurrency 0 {posargs}'
whitelist_externals = bash
[tox:jenkins]