115d9660de
The existing test files are all moved under keystone.tests.unit, except the existing keystone.tests.unit are left in place. The .testr.conf is updated so that unit tests are run by default in tox envs, and a tox env can override the tests to run by setting OS_TEST_PATH. This is so functional tests can sit in keystone.tests.functional. Change-Id: I065d3f56e22f344abdadd92b3b384b002b02d989
20 lines
735 B
Plaintext
20 lines
735 B
Plaintext
[DEFAULT]
|
|
test_command=
|
|
OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
|
|
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
|
|
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
|
|
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./keystone/tests/unit} $LISTOPT $IDOPTION
|
|
|
|
test_id_option=--load-list $IDFILE
|
|
test_list_option=--list
|
|
group_regex=.*(test_cert_setup)
|
|
|
|
|
|
# NOTE(morganfainberg): If single-worker mode is wanted (e.g. for live tests)
|
|
# the environment variable ``TEST_RUN_CONCURRENCY`` should be set to ``1``. If
|
|
# a non-default (1 worker per available core) concurrency is desired, set
|
|
# environment variable ``TEST_RUN_CONCURRENCY`` to the desired number of
|
|
# workers.
|
|
test_run_concurrency=echo ${TEST_RUN_CONCURRENCY:-0}
|
|
|