oslo-incubator/.testr.conf

20 lines
911 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} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
OS_DEBUG=${OS_DEBUG:-0} \
${PYTHON:-python} -m subunit.run discover -t ./ $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list
# NOTE(ipekelny): create an isolated DB instance for each test running process
# to prevent race conditions. Please see
# https://testrepository.readthedocs.org/en/latest/MANUAL.html#remote-or-isolated-test-environments
# for details.
instance_provision=${PYTHON:-python} -m openstack.common.db.sqlalchemy.provision create $INSTANCE_COUNT
instance_dispose=${PYTHON:-python} -m openstack.common.db.sqlalchemy.provision drop $INSTANCE_IDS
instance_execute=OS_TEST_DBAPI_CONNECTION=$INSTANCE_ID $COMMAND