diff --git a/.gitignore b/.gitignore index f1e7fdee..09b6edb0 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/.stestr.conf b/.stestr.conf new file mode 100644 index 00000000..369fb081 --- /dev/null +++ b/.stestr.conf @@ -0,0 +1,2 @@ +[DEFAULT] +test_path=tooz diff --git a/.testr.conf b/.testr.conf deleted file mode 100644 index 142a7526..00000000 --- a/.testr.conf +++ /dev/null @@ -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 diff --git a/setup.cfg b/setup.cfg index 820266e6..08f1cd75 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/tools/pretty_tox.sh b/tools/pretty_tox.sh index 799ac184..150d5066 100755 --- a/tools/pretty_tox.sh +++ b/tools/pretty_tox.sh @@ -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