Migrate to stestr

Change-Id: Id717f076d13f10697a7528139950a0b70d95c1c3
This commit is contained in:
Ben Nemec 2018-09-17 22:31:29 +00:00
parent f5accf53a0
commit bd7cc62a73
5 changed files with 8 additions and 16 deletions

7
.gitignore vendored
View File

@ -2,21 +2,20 @@
*.egg
*.egg-info
build
/.*
!.coveragerc
!.gitignore
!.mailmap
!.testr.conf
.*.sw?
cover/*
covhtml
dist
.tox
.coverage
# Generated by pbr
AUTHORS
ChangeLog
# Generated by testrepository
.testrepository
# Generated by stestr
.stestr/
# Generated by etcd
etcd-v*
default.etcd

2
.stestr.conf Normal file
View File

@ -0,0 +1,2 @@
[DEFAULT]
test_path=tooz

View File

@ -1,9 +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} \
OS_DEBUG=${OS_DEBUG:-TRACE} \
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
${PYTHON:-python} -m subunit.run discover tooz $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -65,12 +65,12 @@ ipc =
test =
mock>=2.0 # BSD
python-subunit>=0.0.18 # Apache-2.0/BSD
testrepository>=0.0.18 # Apache-2.0/BSD
testtools>=1.4.0 # MIT
coverage>=3.6 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD
pifpaf>=0.10.0 # Apache-2.0
os-testr>=0.8.0 # Apache-2.0
stestr>=2.0.0
doc =
sphinx>=1.6.2 # BSD
openstackdocstheme>=1.11.0 # Apache-2.0

View File

@ -10,7 +10,7 @@ TESTRARGS=$1
#
# this work around exists until that is addressed
if [[ "$TESTARGS" =~ "until-failure" ]]; then
python setup.py testr --slowest --testr-args="$TESTRARGS"
stestr run --slowest "$TESTRARGS"
else
python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace -f
stestr run --slowest --subunit "$TESTRARGS" | subunit-trace -f
fi