Browse Source
Nova switched to using stestr for all it's in tree testing except for the coverage job. This commit updates that job so it also uses stestr and cleans up the last bits of testr setup left in tree. As part of this change this moves all the one off per job configuration into the tox job definitions instead of hiding it in either the .stestr.conf or in a wrapper script. Change-Id: I36e0e791d485b44641a1ed8770eca8e95aca19bechanges/48/522048/5
6 changed files with 28 additions and 51 deletions
@ -1,18 +0,0 @@
|
||||
[DEFAULT] |
||||
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \ |
||||
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \ |
||||
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \ |
||||
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./nova/tests} $LISTOPT $IDOPTION |
||||
|
||||
test_id_option=--load-list $IDFILE |
||||
test_list_option=--list |
||||
# NOTE(cdent): The group_regex describes how testrepository will |
||||
# group tests into the same process when running concurently. The |
||||
# following insures that gabbi tests coming from the same YAML file |
||||
# are all in the same process. This is important because each YAML |
||||
# file represents an ordered sequence of HTTP requests. Note that |
||||
# tests which do not match this regex will not be grouped in any |
||||
# special way. See the following for more details. |
||||
# http://testrepository.readthedocs.io/en/latest/MANUAL.html#grouping-tests |
||||
# https://gabbi.readthedocs.io/en/latest/#purpose |
||||
group_regex=nova\.tests\.functional\.api\.openstack\.placement\.test_placement_api(?:\.|_)([^_]+) |
@ -1 +0,0 @@
|
||||
# All functional tests currently work with python 3.5. |
@ -1,15 +0,0 @@
|
||||
#!/usr/bin/env bash |
||||
|
||||
TESTRARGS=$1 |
||||
|
||||
if [ $OS_TEST_PATH = './nova/tests/functional' ]; then |
||||
blacklist_file=tests-functional-py3.txt |
||||
else |
||||
blacklist_file=tests-py3.txt |
||||
fi |
||||
|
||||
if [ -z "$TESTRARGS" ]; then |
||||
stestr run --blacklist-file $blacklist_file |
||||
else |
||||
stestr run "$TESTRARGS" |
||||
fi |
Loading…
Reference in new issue