summaryrefslogtreecommitdiff
path: root/.testr.conf
blob: dc1bb10a33817665d1a22a28cc55284f7308c736 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[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